Mapping Menu Items

zachpeletz's icon

I'd like to be able to choose an item from a menu and have it trigger an output based on the menu item I have selected. I've played around with using gates and if/then statements but am not quite getting it right. I'm thinking that coll might be the best way to go? Any input would be much appreciated.

christophernoel's icon

have you tried the umenu object?

leafcutter's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Try this:

zachpeletz's icon

I'll give those two a shot as well and see what seems to work the best. This is what I had ended up on yesterday (see screenshot). Now I'm just having problems getting Max to print numbers with a 0 before them. The sprintf object is getting me close but always appends characters before the numbers and if I remove the characters (such as "toto") then it doesn't work.

4993.MSCCalc.png
png
Helmuth's icon

create a second blanc space with (mac) before %, in order to get a leading zero (01 etc.)
Best

Max Patch
Copy patch and select New From Clipboard in Max.

`