Forums > MaxMSP

selecting something from menu which deselects everything else

November 8, 2007 | 7:03 pm

Hi all,

This has been bugging me for a while because i’m sure there is a better (more efficient) way of doing it. Does anybody know one?

Thanks
Chris

max v2;
#N vpatcher 10 59 610 459;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 356 264 33 196617 amp;
#P button 360 246 15 0;
#P objectname amp;
#P button 285 239 15 0;
#P objectname pitch;
#P number 312 122 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname rout;
#P message 120 164 148 196617 script disconnect rout 0 amp 0;
#P button 120 112 15 0;
#P button 98 112 15 0;
#P newex 98 87 32 196617 sel 1;
#P message 82 196 152 196617 script disconnect rout 0 pitch 0;
#P button 82 112 15 0;
#P message 98 148 135 196617 script connect rout 0 amp 0;
#P message 60 180 139 196617 script connect rout 0 pitch 0;
#N thispatcher;
#Q end;
#P newobj 60 241 69 196617 thispatcher;
#P button 60 112 15 0;
#P newex 60 87 32 196617 sel 0;
#P user umenu 60 60 71 196647 1 64 76 1;
#X add pitch;
#X add amplitude;
#P comment 277 259 33 196617 pitch;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 5 0;
#P connect 5 0 4 0;
#P fasten 8 0 4 0 87 235 65 235;
#P fasten 6 0 4 0 103 235 65 235;
#P fasten 12 0 4 0 125 235 65 235;
#P connect 2 1 7 0;
#P connect 7 0 8 0;
#P fasten 1 0 9 0 65 81 103 81;
#P connect 9 0 10 0;
#P connect 10 0 6 0;
#P connect 9 1 11 0;
#P connect 11 0 12 0;
#P pop;


November 8, 2007 | 7:13 pm

max v2;
#N vpatcher 10 59 610 459;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 355 208 27 196617 + 1;
#P newex 355 234 47 196617 gate 2 1;
#P comment 388 287 33 196617 amp;
#P button 392 267 15 0;
#P objectname amp;
#P button 355 267 15 0;
#P objectname pitch;
#P number 392 208 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname rout;
#P user umenu 355 177 71 196647 1 64 193 1;
#X add pitch;
#X add amplitude;
#P comment 347 287 33 196617 pitch;
#P connect 1 0 7 0;
#P connect 7 0 6 0;
#P connect 6 0 3 0;
#P connect 2 0 6 1;
#P connect 6 1 4 0;
#P pop;


November 8, 2007 | 7:19 pm

Hey Chris,

What about something like this:

max v2;
#N vpatcher 10 59 610 459;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 285 216 47 196617 gate 2 1;
#P user umenu 285 175 71 196647 1 64 191 1;
#X add pitch;
#X add amplitude;
#P comment 318 260 33 196617 amp;
#P button 322 240 15 0;
#P objectname amp;
#P button 285 239 15 0;
#P objectname pitch;
#P number 322 195 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname rout;
#P comment 277 259 33 196617 pitch;
#P connect 5 0 6 0;
#P connect 6 0 2 0;
#P connect 1 0 6 1;
#P connect 6 1 3 0;
#P pop;

epk

On Nov 8, 2007, at 11:03 AM, Chris Hipgrave wrote:

>
> Hi all,
>
> This has been bugging me for a while because i’m sure there is a
> better (more efficient) way of doing it. Does anybody know one?
>
> Thanks
> Chris
>
> max v2;
> #N vpatcher 10 59 610 459;
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P comment 356 264 33 196617 amp;
> #P button 360 246 15 0;
> #P objectname amp;
> #P button 285 239 15 0;
> #P objectname pitch;
> #P number 312 122 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P objectname rout;
> #P message 120 164 148 196617 script disconnect rout 0 amp 0;
> #P button 120 112 15 0;
> #P button 98 112 15 0;
> #P newex 98 87 32 196617 sel 1;
> #P message 82 196 152 196617 script disconnect rout 0 pitch 0;
> #P button 82 112 15 0;
> #P message 98 148 135 196617 script connect rout 0 amp 0;
> #P message 60 180 139 196617 script connect rout 0 pitch 0;
> #N thispatcher;
> #Q end;
> #P newobj 60 241 69 196617 thispatcher;
> #P button 60 112 15 0;
> #P newex 60 87 32 196617 sel 0;
> #P user umenu 60 60 71 196647 1 64 76 1;
> #X add pitch;
> #X add amplitude;
> #P comment 277 259 33 196617 pitch;
> #P connect 1 0 2 0;
> #P connect 2 0 3 0;
> #P connect 3 0 5 0;
> #P connect 5 0 4 0;
> #P fasten 8 0 4 0 87 235 65 235;
> #P fasten 6 0 4 0 103 235 65 235;
> #P fasten 12 0 4 0 125 235 65 235;
> #P connect 2 1 7 0;
> #P connect 7 0 8 0;
> #P fasten 1 0 9 0 65 81 103 81;
> #P connect 9 0 10 0;
> #P connect 10 0 6 0;
> #P connect 9 1 11 0;
> #P connect 11 0 12 0;
> #P pop;
>
>



jln
November 8, 2007 | 7:54 pm


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