I'm a relative newb trying to use Max to create an editor for my Korg M3. It's coming along nicely but I have one problem I can't seem to get around.
I have two menus, one for the waveform (menu1) and another for the osc modulation (menu2). What I want to do is "grey out" the menu2 when any of the last 4 choices are made from menu1 and then re-enable menu2 when any of the first 4 choices are made. The first case is easy. I used a clear method to clear menu2 when I detect a choice higher than 3 from the output of menu1. The hard part is knowing when to re-instantiate menu2 (I am using append).
So what I need to a way to detect:
if menu1 < 4 && menu2.count==0 then append menu2...
I guess I don't know how to use count properly. It is doing the count AFTER the menu2 is cleared.
Can anyone hep me? I'm hoping i am missing something basic.