Troubleshooting
Help With Menu Object
Started by davidmolina on .
Sign in or create an account to join the conversation.
Hey everyone. I'm not sure if it's possible to do what I want but here it goes.
I would like to have a menu where each option sends a different CC number. Is that possible? I can't seem to find a way to do that. If not then what are the menus for?
Thanks!
I would like to have a menu where each option sends a different CC number. Is that possible? I can't seem to find a way to do that. If not then what are the menus for?
Thanks!
You can do that with a script and a custom control out:
Create an expression called cc with an array of cc you wish to send, something like this: {1,2,3,4,5}
Create a script set to on expression selection, and in the script put this
This should do the trick.
Cheers!
MrCorba
Create an expression called cc with an array of cc you wish to send, something like this: {1,2,3,4,5}
Create a script set to on expression selection, and in the script put this
ctlout(0,cc[selection],127,1);
Where 0 is the midi target, cc[selection] the cc you wish to send, 127 the value and 1 the channel.This should do the trick.
Cheers!
MrCorba
Sorry but I'm a total noob with scripting. Do I create the script changing the elements you pointed out?MrCorba wrote:You can do that with a script and a custom control out:
Create an expression called cc with an array of cc you wish to send, something like this: {1,2,3,4,5}
Create a script set to on expression selection, and in the script put thisWhere 0 is the midi target, cc[selection] the cc you wish to send, 127 the value and 1 the channel.ctlout(0,cc[selection],127,1);
This should do the trick.
Cheers!
MrCorba
Also, not quite sure how to create the expression called cc?
Thanks for the help!
Actually just found out how to create an expression. The only thing I'm a little confused with is how to name it. Should I create an expression for each menu item?