changing controller number

Discuss Lemur and share techniques.
Post Reply
nitefish
Regular
Posts: 56
Joined: 24 Aug 2012 07:43

changing controller number

Post by nitefish »

Bonsoir.
My idea was to change the midi controller number of a knob with a switch:
if switch.x =0,knob drives controller 22,and if switch.x=1,knob now drives controller 23...
I don't have access to this number with the 'setattribute' method.
Any idea?

In advance thank you.
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: changing controller number

Post by Softcore »

Create two knobs with the desired CC controller (22, 23)

create a script in switch and use the show(object,state) expression - 0 is hidden, 1 is visible to toggle the visibility of the two knobs. If you want them to behave as one/be linked, then add add a script to each knob so that it also sets the other knobs value.

off the top of my head and perhaps there's a better, programmer's way but this gets the job done! ;)
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: changing controller number

Post by Macciza »

Hi
Use a custom midi message under the knob
For the controller value use Switches.x?23:22
This is a shorthand if?then:else ~ if Switches.x =1 val=23 else val = 22

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]
nitefish
Regular
Posts: 56
Joined: 24 Aug 2012 07:43

Re: changing controller number

Post by nitefish »

yeah! two solutions to try on this evening...
thank you.
nitefish
Regular
Posts: 56
Joined: 24 Aug 2012 07:43

Re: changing controller number

Post by nitefish »

Ok,The "show/hide" solution is the one I need because I don't have to add a script for presets.
I really need two different controls keeping their value on the "hide" position.
One more time,thank you...
Have a nice day.
Post Reply