Forums > MaxMSP

pictctrl toggle buddies

July 31, 2007 | 12:19 am

I have two pictctrl toggles, that I would like to link such that
setting one to 1 sets the other to 0, and vice versa. I would also
like to pp enable one or both of them for storing in a Pluggo. In
essence I want the two pictctrls to behave like a pair of radio
buttons.

I’m having trouble with feedback loops – I know about Tim Place’s
"gang" object which is handy for such things, but I can’t figure out
how to invert one of the toggles to be the opposite of the other
using it..

Thanks,
Dan

Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
Malfunction
http://www.defectiverecords.com

http://www.jackosx.com


July 31, 2007 | 5:45 am


July 31, 2007 | 8:00 am

You can do this with jasch’s mtx object – see below,
cheers
Roger

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 79 133 38 196617 mtx A;
#N pp 2 togB;
#P newobj 153 132 52 196617 pp 2 togB;
#P toggle 121 134 15 0;
#P newex 78 104 38 196617 mtx A;
#N pp 1 togA;
#P newobj 152 103 53 196617 pp 1 togA;
#P toggle 120 105 15 0;
#P connect 3 0 5 0;
#P connect 3 0 4 0;
#P connect 4 0 3 0;
#P connect 5 0 3 0;
#P connect 0 0 2 0;
#P connect 0 0 1 0;
#P connect 2 0 0 0;
#P connect 1 0 0 0;
#P window clipboard copycount 6;

— Dan Nigrin wrote:

> I have two pictctrl toggles, that I would like to
> link such that
> setting one to 1 sets the other to 0, and vice
> versa. I would also
> like to pp enable one or both of them for storing in
> a Pluggo. In
> essence I want the two pictctrls to behave like a
> pair of radio
> buttons.
>
> I’m having trouble with feedback loops – I know
> about Tim Place’s
> "gang" object which is handy for such things, but I
> can’t figure out
> how to invert one of the toggles to be the opposite
> of the other
> using it..
>
> Thanks,
> Dan
> —
> Dan Nigrin
> Defective Records
> 202 Hack / PC-1600 User / VSTi Host / OMS Convert /
> Jack OS X / Major
> Malfunction
> http://www.defectiverecords.com
> http://www.jackosx.com
>
>


July 31, 2007 | 11:51 am

Thanks Roger and Roman, both nice solutions!

Dan

Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
Malfunction
http://www.defectiverecords.com

http://www.jackosx.com


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