Help With Menu Object

Discuss problems and solutions.
Post Reply
davidmolina
Newbie
Posts: 6
Joined: 10 Nov 2015 05:25

Help With Menu Object

Post 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!
MrCorba
Regular
Posts: 142
Joined: 02 Sep 2013 20:17
Location: Netherlands

Re: Help With Menu Object

Post 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
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba
davidmolina
Newbie
Posts: 6
Joined: 10 Nov 2015 05:25

Re: Help With Menu Object

Post 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!
davidmolina
Newbie
Posts: 6
Joined: 10 Nov 2015 05:25

Re: Help With Menu Object

Post 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?
davidmolina
Newbie
Posts: 6
Joined: 10 Nov 2015 05:25

Re: Help With Menu Object

Post by davidmolina »

Does this look right?
Attachments
Screen Shot 2015-11-10 at 4.35.04 PM.png
Screen Shot 2015-11-10 at 4.35.04 PM.png (144.53 KiB) Viewed 2980 times
Post Reply