Page 1 of 1
changing controller number
Posted: 12 Nov 2012 17:01
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.
Re: changing controller number
Posted: 12 Nov 2012 22:14
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!
Re: changing controller number
Posted: 13 Nov 2012 03:31
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
Re: changing controller number
Posted: 13 Nov 2012 11:18
by nitefish
yeah! two solutions to try on this evening...
thank you.
Re: changing controller number
Posted: 13 Nov 2012 20:19
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.