Page 1 of 1

Custom Values from Knob output - Best method

Posted: Wed Mar 23, 2016 7:41 am
by RJHollins
Hi Gang ... got a question on how to approach this.

Here's the issue.

I need to output specific output values [user defined] based on a Knob [0-1].

detail: There are 128 STEPs for the knob [MIDI spec]. For each value I need to plot to a table of values and display a STRING value [such as a Frequency or a +/- Gain value].

So, for MIDI value 1 will display 356. value 2 display 400, value 3 display 645 etc [just simple example].

The main question. I need to correlate 128 steps to a user defined string value [for display only]. What would be the most efficient way to do this ?

RUBY seems the most sensible ... maybe. Would I use CASE statement for this. That could get real messy with 128 different Cases ... it also seems it could get sluggish when polling the higher values ... don't know :roll:

How would You handle doing this ?? Without losing your mind in the process :lol:

Re: Custom Values from Knob output - Best method

Posted: Wed Mar 23, 2016 9:49 am
by martinvicanek
Like this?
primes.png
primes.png (12.55 KiB) Viewed 8772 times

Re: Custom Values from Knob output - Best method

Posted: Wed Mar 23, 2016 10:19 am
by RJHollins
Hello Martin ....

That's exactly it :mrgreen:

That was the method [GetAt] I was just testing before checking back in. It seemed to scroll through the list smoothly.

Prior to that, I had started testing a RUBY example using CASE statements. That worked, but would be a lot of typing for this current project :shock: It's still going to be a lot ... I've 8 knobs that each hold 12 unique configurations. :o

Thanks for confirming this approach BEFORE I got to deep into it.

As always .... THANKS 8-)