Custom Values from Knob output - Best method

For general discussion related FlowStone
Post Reply
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Custom Values from Knob output - Best method

Post 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:
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Custom Values from Knob output - Best method

Post by martinvicanek »

Like this?
primes.png
primes.png (12.55 KiB) Viewed 8778 times
Attachments
prmes.fsm
(7.42 KiB) Downloaded 859 times
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Custom Values from Knob output - Best method

Post 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-)
Post Reply