one simple question from a noob

Discuss Lemur and share techniques.
Post Reply
jimblack
Newbie
Posts: 3
Joined: 21 Mar 2012 08:09

one simple question from a noob

Post 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
analog604
Regular
Posts: 262
Joined: 29 Dec 2011 15:40
Location: north east, usa

Re: one simple question from a noob

Post 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
Attachments
switchTestDemo1b.jzml
monitor switches and use value in scaling, to display text, and in a scope.
(11.33 KiB) Downloaded 75 times
Dashboard gear control templates: User 112 Idx :: LModIt Lite :: SVG image converter for Lemur Canvas
jimblack
Newbie
Posts: 3
Joined: 21 Mar 2012 08:09

Re: one simple question from a noob

Post 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.)
analog604
Regular
Posts: 262
Joined: 29 Dec 2011 15:40
Location: north east, usa

Re: one simple question from a noob

Post 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.)
Dashboard gear control templates: User 112 Idx :: LModIt Lite :: SVG image converter for Lemur Canvas
jimblack
Newbie
Posts: 3
Joined: 21 Mar 2012 08:09

Re: one simple question from a noob

Post by jimblack »

no not yet, do you have a tip?
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: one simple question from a noob

Post 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
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Post Reply