[PD] stereo in pd

shift8 shift8 at digitrash.com
Mon Feb 12 21:54:46 CET 2007


as sciss says, you can use soundfiler and:

[read -resize $1 array1 array2{  

(bunch of other nifty options for sample loading here too - see the help
patch for soundfiler.)

some limitations are: 
a) if the file is mono, only array1 is populated (sometimes annoying...)

b) the max resize is 4000000 samples because of what i would call a bug
in array index handling. you can change this in the source, but seem
like that introduces sound artifacts for some reason (search the pd-list
archive for 4000000 in message bodies for more info)

c) full on dsp stoppage during the file read.  not cool for performance
work.

i personaly strive for synthesis-only work, and use samples of small
duration for loops.  but that's just me wanking :)

i'd love to here what the state of the state is for threaded soundfilers
these days and best practices for this from the local ninjas! 

On Sat, 2007-02-10 at 16:35 +0100, Sciss wrote:
> hi alex,
> 
> [readsf~] works for me. the first argument is the number of channels.  
> it's true though that you cannot have an absolute drop-out-free loop,  
> because you need to send a message to replay the file after it  
> reached the end. is that the problem? if so and your files are only  
> in the magnitude of some 20 MB, you could use an array with  
> [soundfiler] and read the whole soundfile into the RAM....
> 
> ciao, -sciss-   [little headache this morning ;) thanks for the nice  
> evening + fried eggs]
> 
> 
> #N canvas 623 324 522 304 10;
> #X obj 149 142 readsf~ 4;
> #X msg 149 57 open /Users/rutz/Desktop/SC_070210_162553.aif;
> #X obj 149 221 dac~ 1 2 3 4;
> #X obj 84 62 t b b;
> #X msg 117 92 1;
> #X obj 22 177 gate;
> #X obj 18 61 tgl 15 0 empty empty Loop 0 -6 0 8 -262144 -1 -1 1 1;
> #X obj 84 22 bng 15 250 50 0 empty empty Play 0 -6 0 8 -262144 -1 -1
> ;
> #X msg 176 114 0;
> #X obj 175 89 bng 15 250 50 0 empty empty Stop 0 -6 0 8 -262144 -1
> -1;
> #X connect 0 0 2 0;
> #X connect 0 1 2 1;
> #X connect 0 2 2 2;
> #X connect 0 3 2 3;
> #X connect 0 4 5 1;
> #X connect 1 0 0 0;
> #X connect 3 0 4 0;
> #X connect 3 1 1 0;
> #X connect 4 0 0 0;
> #X connect 5 0 3 0;
> #X connect 6 0 5 0;
> #X connect 7 0 3 0;
> #X connect 8 0 0 0;
> #X connect 9 0 8 0;
> 
> 
> 
> Am 10.02.2007 um 12:01 schrieb alexandre r. decoupigny:
> 
> > do you know of any objects or abstractions that are able to play  
> > back (in a
> > loop) a couple of approx. 1.5 min. stereo interleaved files as  
> > stereo files that
> > keep the stereo  image of the file..
> >
> > i recorded 4 channels simultaneously with two neumann and a sennheiser
> >  shotgun..
> > i made the neumann tracks hard left and right and the shotgun  
> > (middle and side) &
> > i used the shotgun to fill the gap and the side information of the  
> > shotgun
> > to widen the stereo image. this i did in cubase le.
> >  then i bounced the mix as stereo interleaved and tried
> > playing it back in pd with playsf~ or readsf~, but the stereo image  
> > is just
> > lost... even if i use two of them with mono files and seperate them  
> > with a pan~.. im lost on
> >  this, please can anybody help me ? i played them back through  
> > quicktime and the
> > stereo image was fine.. did not want to send you one of the files ,  
> > because
> > they are all around 20-25MB...
> > sorry again, but im super lost here and need some help so if you  
> > have an
> > idea, i would be
> > flattered if you helped me : )))
> > best
> > alexandre
> >
> > -- 
> > alexandre r. decoupigny
> >
> > www.listeningart.blogspot.com
> > www.myspace.com/alexandredecoupigny
> > _______________________________________________
> > PD-list at iem.at mailing list
> > UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
> > listinfo/pd-list
> 
> 
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
> 
-- 
Mechanize something idiosyncratic.






More information about the Pd-list mailing list