Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Custom Values from Knob output - Best method

For general discussion related FlowStone

Custom Values from Knob output - Best method

Postby RJHollins » Wed Mar 23, 2016 7:41 am

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:
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: Custom Values from Knob output - Best method

Postby martinvicanek » Wed Mar 23, 2016 9:49 am

Like this?
primes.png
primes.png (12.55 KiB) Viewed 7924 times
Attachments
prmes.fsm
(7.42 KiB) Downloaded 807 times
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Custom Values from Knob output - Best method

Postby RJHollins » Wed Mar 23, 2016 10:19 am

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-)
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm


Return to General

Who is online

Users browsing this forum: No registered users and 48 guests