[PD] parent-child relation with sliders

Frank Barknecht fbar at footils.org
Thu Mar 3 20:10:40 CET 2005


Hallo,
wolfgang schwarzenbrunner hat gesagt: // wolfgang schwarzenbrunner wrote:

> At 16:16 03.03.2005, derek holzer wrote:
> >can you send an example patch?
> 
> basically something like that.. but i am shure it can be built a little 
> more elegant

First you should get rid of the spigot construct to avoid locking
feedbacks. It's too complicated, it's error prone and most of all: It
is ugly so it cannot be the best solution. Aesthetics make the
software world go round. 

Then: In the upper part of your patch you create three loops and then
cheat your way out of it. Even the usual "set $1" will not help you
there, it's an accident waiting to happen. So lets delete it
altogether. 

I cannot really follow the lower part of your patch, so I'm just
guessing here now. I suppose you want to create three linked sliders,
which all move in sync, if one of them moves. Again, "set $1" is your
friend here. So lets delete all this, too, and add "set $1", as done
in attached patch. 

It's obvious at first sight, that this solution is simple and most
importantly: It's not ugly anymore. 

Ciao
-- 
 Frank Barknecht                               _ ______footils.org__
             
             _ __latest track: fqdn _ http://footils.org/cms/show/38
-------------- next part --------------
#N canvas 341 188 599 393 12;
#X obj 51 108 hsl 100 15 0 127 0 0 a1 a2 empty -2 -6 0 8 -262144 -1
-1 0 1;
#X obj 208 109 hsl 100 15 0 127 0 0 b1 b2 empty -2 -6 0 8 -262144 -1
-1 0 1;
#X obj 364 112 hsl 200 15 0 127 0 0 c1 c2 empty -2 -6 0 8 -262144 -1
-1 0 1;
#X msg 48 180 set \$1;
#X msg 209 183 set \$1;
#X msg 360 191 set \$1;
#X obj 48 153 r a1;
#X obj 48 225 s b2;
#X obj 101 225 s c2;
#X obj 209 156 r b1;
#X obj 209 228 s a2;
#X obj 262 228 s c2;
#X obj 360 164 r c1;
#X obj 400 234 s b2;
#X obj 360 234 s a2;
#X text 83 40 Three sliders dancing N'Sync. But where's Justin?;
#X connect 3 0 7 0;
#X connect 3 0 8 0;
#X connect 4 0 10 0;
#X connect 4 0 11 0;
#X connect 5 0 13 0;
#X connect 5 0 14 0;
#X connect 6 0 3 0;
#X connect 9 0 4 0;
#X connect 12 0 5 0;


More information about the Pd-list mailing list