Page 1 of 1

Help With Menu Object

Posted: 10 Nov 2015 05:32
by davidmolina
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!

Re: Help With Menu Object

Posted: 10 Nov 2015 13:26
by MrCorba
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

Code: Select all

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

Re: Help With Menu Object

Posted: 10 Nov 2015 21:05
by davidmolina
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 this

Code: Select all

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?

Also, not quite sure how to create the expression called cc?

Thanks for the help!

Re: Help With Menu Object

Posted: 10 Nov 2015 21:09
by davidmolina
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?

Re: Help With Menu Object

Posted: 10 Nov 2015 21:35
by davidmolina
Does this look right?