[PD] minus; bug or feature?
Frank Barknecht
barknech at ph-cip.uni-koeln.de
Mon Apr 15 17:39:13 CEST 2002
Andre Schmidt hat gesagt: // Andre Schmidt wrote:
> uuuups, (how stupid from me)
> yep, i calculated wrong way :)
>
> but i wanted to subtract x from y (x = dynamic, y = static) so i had
> to bang y every time x changes to get result... or (what i now use,
> THNX) just multiply with -1 (so i dont need to bang y)
A common idiom for this in PD is to use a [t b f] object like in the
attached patch on the left. But beware of the common mistake using
triggers as illustrated on the right.
Ciao,
--
__ __
Frank Barknecht ____ ______ ____ __ trip\ \ / /wire ______
/ __// __ /__/ __// // __ \ \/ / __ \\ ___\
/ / / ____/ / / / // ____// /\ \\ ___\\____ \
/_/ /_____/ /_/ /_//_____// / \ \\_____\\_____\
/_/ \_\
-------------- next part --------------
#N canvas 364 323 420 302 10;
#X obj 130 87 t b f;
#X floatatom 70 64 5 0 0;
#X floatatom 130 64 5 0 0;
#X obj 70 146 -;
#X floatatom 70 175 5 0 0;
#X floatatom 254 65 5 0 0;
#X floatatom 314 65 5 0 0;
#X obj 254 147 -;
#X floatatom 254 176 5 0 0;
#X obj 314 104 t b;
#X text 280 33 Don't;
#X text 97 29 Do;
#X connect 0 0 3 0;
#X connect 0 1 3 1;
#X connect 1 0 3 0;
#X connect 2 0 0 0;
#X connect 3 0 4 0;
#X connect 5 0 7 0;
#X connect 6 0 9 0;
#X connect 6 0 7 1;
#X connect 7 0 8 0;
#X connect 9 0 7 0;
More information about the Pd-list
mailing list