[PD] strange readsf switch as abstraction

Hans Roels hans.roels at versateladsl.be
Fri Nov 28 12:48:08 CET 2008


Hello,

If you use readsf~ connected to two subpatches with switch~ in an 
abstraction it doesn't work. If you open this file as a main file 
(not as an abstraction) it works fine. If it is used as an 
abstraction it starts to work from the moment you move or connect an 
object 'downstream' of readsf~ (while the file is 'playing'). From 
then on the readsf~ and switch~ work well.

Have a look at the file in attach, I can't explain this or am I 
missing something?

(tested this on pd vanilla 0.41.4 en 0.40.2 on windows xp)

Hans r 
-------------- next part --------------
#N canvas 64 71 664 475 12;
#X msg 217 56 1;
#X msg 216 84 0;
#X obj 43 124 readsf~ 2;
#X obj 300 387 dac~;
#X obj 286 252 tgl 15 0 empty empty main_out -15 -10 0 8 -262144 -1
-1 0 65;
#N canvas 0 0 399 213 switch 0;
#X obj 47 36 inlet~;
#X obj 265 144 switch~;
#X obj 52 145 outlet~;
#X obj 261 41 inlet switch;
#X obj 125 36 inlet~;
#X obj 130 145 outlet~;
#X connect 0 0 2 0;
#X connect 3 0 1 0;
#X connect 4 0 5 0;
#X coords 0 0 1 1 80 50 0;
#X restore 58 329 pd switch;
#X obj 121 294 == 0;
#N canvas 0 0 399 213 switch 0;
#X obj 47 36 inlet~;
#X obj 265 144 switch~;
#X obj 52 145 outlet~;
#X obj 261 41 inlet switch;
#X obj 125 36 inlet~;
#X obj 130 145 outlet~;
#X connect 0 0 2 0;
#X connect 3 0 1 0;
#X connect 4 0 5 0;
#X coords 0 0 1 1 80 50 0;
#X restore 196 324 pd switch;
#X obj 20 380 outlet~ left;
#X obj 156 385 outlet~ right;
#X obj 138 177 print~;
#X obj 143 149 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X msg 38 29 open ../doc/sound/bell.aiff;
#X text 292 323 < or move this (edit mode) and try again;
#X text 194 180 < move this (edit mode) while the file should be playing
;
#X text 135 5 open this file as an abstraction;
#X text 258 196 and there's sound!!;
#X text 382 28 step 1 (or 2);
#X text 380 53 step 3 (result: ...no sound);
#X text 373 247 step 2 (or 1);
#X connect 0 0 2 0;
#X connect 1 0 2 0;
#X connect 2 0 5 0;
#X connect 2 0 7 0;
#X connect 2 0 10 0;
#X connect 2 1 5 1;
#X connect 2 1 7 1;
#X connect 4 0 6 0;
#X connect 4 0 7 2;
#X connect 5 0 8 0;
#X connect 5 1 9 0;
#X connect 6 0 5 2;
#X connect 7 0 3 0;
#X connect 7 1 3 1;
#X connect 11 0 10 0;
#X connect 12 0 2 0;


More information about the Pd-list mailing list