[PD] toggling
Frank Barknecht
barknech at ph-cip.uni-koeln.de
Fri Jun 21 08:50:40 CEST 2002
Hi,
Chris McCormick hat gesagt: // Chris McCormick wrote:
> At 22:41 20/06/2002 -0600, you wrote:
> >I don't believe that there is such an object...but it's easy enough to
> >build.
> >
> >See the attachment - note that the first bang will send '0', then every
> >subsequent bang will toggle between '1' and '0'.
>
> Awesome, that is perfect, Thanks very much. Will have to investigate the
> expr object.
Actually. the standard GUI object "toggle" does the same, as shown in
the attached patch.
ciao,
--
Frank Barknecht _ ______footils.org__
-------------- next part --------------
#N canvas 243 161 452 302 12;
#X obj 147 63 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 147 119 f;
#X floatatom 147 158 5 0 0;
#X obj 181 119 expr 1-$f1;
#X obj 325 122 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X floatatom 325 154 5 0 0;
#X connect 0 0 1 0;
#X connect 0 0 4 0;
#X connect 1 0 2 0;
#X connect 1 0 3 0;
#X connect 3 0 1 1;
#X connect 4 0 5 0;
More information about the Pd-list
mailing list