Page 2 of 2

Re: Crazy question

Posted: Mon Aug 01, 2016 3:40 pm
by kortezzzz
Hi Bob,

Did you mean something like this? I'v used ruby hashes to easily generate the amp voltage :)

Re: Crazy question

Posted: Mon Aug 01, 2016 5:24 pm
by RJHollins
Nice kortezzzz !
8-)

Re: Crazy question

Posted: Mon Aug 01, 2016 7:10 pm
by BobF
Hello kortezzzz,

This is perfect! Think you very much for going through the trouble to create this.
It is just what I was looking for. Now the fun part begins, implementing it into my project.

Again much appreciated!

Later then, BobF.....

Re: Crazy question

Posted: Mon Aug 01, 2016 10:25 pm
by adamszabo
I think this is more like he wanted: press and hold the lowest keyboard note with your mouse and drag it up the scale, and you can see the knob moving up accordingly.

Re: Crazy question

Posted: Tue Aug 02, 2016 7:34 am
by RJHollins
kortezzzz wrote:Hi Bob,

Did you mean something like this? I'v used ruby hashes to easily generate the amp voltage :)

Hi kortezzzz ...

I'm trying to better understand some of the detail in this ruby hash section.

Would you explain this :

36 => 1,
37 => 2,
38 => 3,

particularly the => sign. I see them as EQUAL TO or GREATER THAN. But then, its confusing as to why you would do it that way.

Again ... I'm still a RUBY-NUBEE ... and HASHES are still mysterious.

Thanks for any additional insights you may share. 8-)

Re: Crazy question

Posted: Tue Aug 02, 2016 3:54 pm
by kortezzzz
Hey guys,

Happy to see you satisfied :)

@RJHollins,

Silly me, I've completely forgot to credit Trog for this lovely piece of ruby code he wrote for me few years a go, so thank you Trog, wherever you are! 8-)

I don't literally understand this ruby code as well, since I'm probably the worst coder you'll ever ask :oops:
Bob's question has just reminded me about this and I've used it straight from my toolbox, as is (only changed the easy part of equation parameters so they would fit the request).

Maybe one of the gurus would shed some light?

Re: Crazy question

Posted: Tue Aug 02, 2016 6:09 pm
by RJHollins
I thought I was 'probably the worst coder' :shock:

Re: Crazy question

Posted: Tue Aug 02, 2016 6:53 pm
by BobF
Hi all,

Not to diminish kortezzzz's device any but the "keyboard tracker" by adamszabo looks even better. Thanks for sharing (adamszabo / trog).
Thanks everyone who contributed here. It's really great to get feedback from you all. I put up so many fsm's and ask for comments and never get even one on most of them.

Take care guys!
See ya next time around, BobF.....