Forums > MaxMSP

Mapping Menu Items

February 4, 2013 | 1:19 am

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.


February 4, 2013 | 3:09 am

have you tried the umenu object?


February 4, 2013 | 11:46 am

Try this:

– Pasted Max Patch, click to expand. –

February 4, 2013 | 5:26 pm

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.

[attachment=214018,4993]

Attachments:
  1. MSCCalc.png

February 4, 2013 | 7:08 pm

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

`

– Pasted Max Patch, click to expand. –

Viewing 5 posts - 1 through 5 (of 5 total)