[PD] suggestion... or question

Frank Barknecht fbar at footils.org
Tue May 9 10:19:09 CEST 2006


Hallo,
Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:
> nqpoly~ may be crippled, but nqpoly4 is actually quite good.  The  
> only tricky thing about it is initialization.  And you do have to  
> close and reopen patches sometimes to reset everything.  But once you  
> get things running, its quite stable.  I used nqpoly4 in my solitude  
> piece, there I controlled 500 instances of an object.  Right now I am  
> helping someone control 100 spheres in Gem using nqpoly4.

I'm not sure, if you can use it, but there is a nice Gem idiom which
makes dealing with large numbers of objects of the same kind (like 100
spheres) much easier than creating 100 [sphere] objects. It involves
the use of IEMlib's [any] object connected to a [separator]. I use
this idiom a lot when visualising physical models with [msd]. Attached
is the abstraction I use there.

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__
-------------- next part --------------
#N canvas 0 0 610 438 10;
#X obj 74 76 inlet;
#X obj 74 270 separator;
#X obj 74 238 any;
#X obj 90 204 gemhead 45;
#X obj 74 99 t b a;
#X obj 74 312 outlet;
#X obj 104 164 outlet;
#X text 123 237 Important: number (45) must be less than incoming gemhead
;
#X connect 0 0 4 0;
#X connect 1 0 5 0;
#X connect 2 0 1 0;
#X connect 3 0 2 1;
#X connect 4 0 2 0;
#X connect 4 1 6 0;
#X coords 0 0 1 1 120 60 0;
-------------- next part --------------
#N canvas 126 162 534 416 10;
#X obj 110 197 msd-separator;
#X obj 110 40 gemhead;
#X obj 110 274 translateXYZ;
#X obj 339 70 gemwin;
#X msg 337 32 create \, 1;
#X msg 339 50 0 \, destroy;
#X obj 110 67 b;
#X obj 196 237 unpack 0 0 0;
#N canvas 0 0 726 497 randpos 0;
#X obj 266 106 inlet;
#X msg 299 162 set;
#X msg 132 311 0.210259 1.11532 0.266082 \, 0.964404 2.73839 2.92122
\, 0.856728 2.08593 1.47342 \, 1.28706 2.68154 2.6049 \, 1.51613 2.64414
1.00567 \, 2.10757 2.06572 2.02923 \, 1.9344 0.786605 1.9454 \, 2.72672
1.67248 0.0337902 \, 1.17129 1.34977 1.04273 \, 1.52254 1.52378 1.53765
\,;
#X obj 258 227 tripleRand 3;
#X msg 258 269 add2 \$1 \$2 \$3 \, addcomma;
#X obj 67 310 outlet;
#X obj 132 204 inlet;
#X obj 234 195 until;
#X msg 316 108 bang;
#X obj 267 139 t f b;
#X obj 232 171 moses;
#X connect 0 0 9 0;
#X connect 1 0 2 0;
#X connect 2 0 5 0;
#X connect 3 0 4 0;
#X connect 4 0 2 0;
#X connect 6 0 2 0;
#X connect 7 0 3 0;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 9 1 1 0;
#X connect 10 1 7 0;
#X restore 110 144 pd randpos;
#X obj 110 304 translateXYZ -2 -2 -2;
#X floatatom 175 117 5 0 500 0 - - -;
#X msg 123 354 draw line;
#X obj 123 330 loadbang;
#X text 195 145 generate # lists with random positions;
#X obj 110 377 cube 0.1;
#X msg 175 94 bang;
#X connect 0 0 2 0;
#X connect 0 1 7 0;
#X connect 1 0 6 0;
#X connect 2 0 9 0;
#X connect 4 0 3 0;
#X connect 5 0 3 0;
#X connect 6 0 8 0;
#X connect 7 0 2 1;
#X connect 7 1 2 2;
#X connect 7 2 2 3;
#X connect 8 0 0 0;
#X connect 9 0 14 0;
#X connect 10 0 8 1;
#X connect 11 0 14 0;
#X connect 12 0 11 0;
#X connect 15 0 10 0;


More information about the Pd-list mailing list