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
3 posts
• Page 1 of 1
Custom Values from Knob output - Best method
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
How would You handle doing this ?? Without losing your mind in the process
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
How would You handle doing this ?? Without losing your mind in the process
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
Re: Custom Values from Knob output - Best method
Like this?
- Attachments
-
- prmes.fsm
- (7.42 KiB) Downloaded 806 times
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Custom Values from Knob output - Best method
Hello Martin ....
That's exactly it
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 It's still going to be a lot ... I've 8 knobs that each hold 12 unique configurations.
Thanks for confirming this approach BEFORE I got to deep into it.
As always .... THANKS
That's exactly it
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 It's still going to be a lot ... I've 8 knobs that each hold 12 unique configurations.
Thanks for confirming this approach BEFORE I got to deep into it.
As always .... THANKS
- RJHollins
- Posts: 1571
- Joined: Thu Mar 08, 2012 7:58 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 58 guests