Page 1 of 1

one simple question from a noob

Posted: 22 Mar 2012 16:42
by jimblack
I want to change the output value of a 8 button switch from Ctrl. values 1-8 (for example) to be instead 0-1 in increments of .125. I'm stabbing in the dark as far how to write that script or expression? thanks

Re: one simple question from a noob

Posted: 23 Mar 2012 01:53
by analog604
Hi and welcome to the forum!

.125 is a key number for what you want to do given 8 switch values.. ;) so you've already figured out a little about scaling.
now to apply..
here's a quick example that shows things that can be done with switches and a little calculation

the easiest practical way to learn Lemur is to setup monitors for any value that you want to try the math with. also continue to try to follow templates that have been posted.

[edit: opps sorry i update to v1b..]

cheers~
J

Re: one simple question from a noob

Posted: 30 Mar 2012 19:33
by jimblack
thank you, that's a great help - i should have been a little more specific - I see the routing and resulting values in the Lemur patch, but how would one send this new scaled value with the switch (+.125 value, etc.) via MIDI to my software...? (I'm trying to send this scaled control data from the switch to CTL # 1 on my software.)

Re: one simple question from a noob

Posted: 03 Apr 2012 02:14
by analog604
Hi were you able to work out the solution?
jimblack wrote:thank you, that's a great help - i should have been a little more specific - I see the routing and resulting values in the Lemur patch, but how would one send this new scaled value with the switch (+.125 value, etc.) via MIDI to my software...? (I'm trying to send this scaled control data from the switch to CTL # 1 on my software.)

Re: one simple question from a noob

Posted: 03 Apr 2012 05:04
by jimblack
no not yet, do you have a tip?

Re: one simple question from a noob

Posted: 03 Apr 2012 05:21
by Macciza
Hi Jim
You can't send .125 as a MIDI CC value - values aree 0 - 127 whole numbers. . .
What are you trying to control? Check it's specifications.
Sometimes the whole range 0-127 will split up into segments for the 8 values you want; sometimes they may be 0-7 . . .

CC 1 is usually modulation - is that what you are doing?
Send values on CC 1 0-127 and map the response you need . . .

What hardware? Send in a bit of the patch maybe . .

Cheers
MM