[PD] readsf~ question

Frank Barknecht fbar at footils.org
Tue Aug 19 18:48:53 CEST 2008


Hallo,
Peter O'Doherty hat gesagt: // Peter O'Doherty wrote:

> Will this do?

Yes, thanks. 

There is a big difference between both versions: [readsf~] only plays
the first channel of a stereo file, while [readsf~ 2] plays both. See
attachement.

Ciao
-- 
Frank
-------------- next part --------------
#N canvas 0 1 860 525 10;
#X obj 506 148 readsf~;
#X msg 531 112 1;
#X msg 566 113 0;
#X msg 533 305 1;
#X msg 568 306 0;
#X obj 509 347 readsf~ 2;
#X obj 64 265 writesf~ 2;
#X msg 201 185 open sine-right.wav;
#X obj 131 241 osc~ 440;
#X msg 139 184 start;
#X msg 64 182 stop;
#X obj 508 427 env~;
#X floatatom 508 447 5 0 0 0 - - -;
#X obj 506 174 env~;
#X floatatom 506 194 5 0 0 0 - - -;
#X obj 552 389 env~;
#X floatatom 552 409 5 0 0 0 - - -;
#X obj 603 390 env~;
#X floatatom 603 410 5 0 0 0 - - -;
#X msg 506 87 open sine-right.wav \, 1;
#X msg 509 280 open sine-right.wav \, 1;
#X obj 86 417 loadbang;
#X msg 86 441 \; pd dsp 1;
#X obj 64 157 delay 500;
#X obj 64 105 t b b b;
#X obj 46 209 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X msg 64 80 record something;
#N canvas 0 0 435 259 view-sample 0;
#X obj 25 166 soundfiler;
#X obj 91 71 table sample-l;
#X obj 92 90 table sample-r;
#X msg 25 138 read -resize sine-right.wav sample-l sample-r;
#X floatatom 25 192 5 0 0 0 - - -;
#X connect 0 0 4 0;
#X connect 3 0 0 0;
#X restore 195 440 pd view-sample;
#X text 61 37 1) click to record a stereo file with silence left \,
sine right:;
#X text 499 52 this is mute as it only plays left channel:;
#X text 511 257 This plays both channels:;
#X connect 0 0 13 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 5 0;
#X connect 4 0 5 0;
#X connect 5 0 11 0;
#X connect 5 0 15 0;
#X connect 5 1 11 0;
#X connect 5 1 17 0;
#X connect 7 0 6 0;
#X connect 8 0 6 1;
#X connect 9 0 6 0;
#X connect 10 0 6 0;
#X connect 11 0 12 0;
#X connect 13 0 14 0;
#X connect 15 0 16 0;
#X connect 17 0 18 0;
#X connect 19 0 0 0;
#X connect 20 0 5 0;
#X connect 21 0 22 0;
#X connect 23 0 10 0;
#X connect 23 0 25 0;
#X connect 24 0 23 0;
#X connect 24 1 9 0;
#X connect 24 2 7 0;
#X connect 26 0 24 0;


More information about the Pd-list mailing list