[PD] [writesf~] sample rate problem?

Tim Flood timflood23 at hotmail.com
Sun Jul 1 23:42:22 CEST 2007


Hello Everyone-

I have written a simple patch (see below) designed for hard disk recording 
at 24-bit/96kHz.  The -bytes flag sets the bit depth correctly, but no 
matter what value I use to set the -rate flag, the file is always created 
with a sampling rate of 44.1kHz.  (My soundcard is set up to work at 96kHz). 
  Is this a bug, or am I just missing something?  Any help would be greatly 
appreciated!

Best Regards,

-Tim

#N canvas 224 44 449 382 10;
#X msg 129 286 start;
#X msg 198 286 stop;
#X obj 43 336 writesf~ 2;
#X obj 153 71 time;
#X obj 16 173 pack s s s s s s;
#X obj 16 96 makefilename %u;
#X obj 26 147 makefilename %u;
#X obj 153 96 makefilename %u;
#X obj 161 122 makefilename %u;
#X obj 169 147 makefilename %u;
#X obj 16 71 date;
#X obj 21 122 makefilename %u;
#X obj 43 260 inlet~;
#X obj 100 260 inlet~;
#X obj 129 336 print record;
#X text 123 173 time & date stamp;
#X text 10 4 [diskRecorder~];
#X text 13 18 writes an audio file to disk.;
#X text 43 244 main-l;
#X text 101 244 main-r;
#X obj 16 50 bng 15 250 50 0 empty empty empty 0 -6 0 10 -262144 -1
-1;
#X text 231 223 open 24-bit/96kHz file;
#X msg 16 224 open -rate 96000 -bytes 3 -aiff \$1;
#X obj 16 198 makesymbol %s-%s-%s_%s-%s-%s;
#X text 36 48 push me;
#X connect 0 0 2 0;
#X connect 0 0 14 0;
#X connect 1 0 2 0;
#X connect 1 0 14 0;
#X connect 3 0 7 0;
#X connect 3 1 8 0;
#X connect 3 2 9 0;
#X connect 4 0 23 0;
#X connect 5 0 4 0;
#X connect 6 0 4 2;
#X connect 7 0 4 3;
#X connect 8 0 4 4;
#X connect 9 0 4 5;
#X connect 10 0 5 0;
#X connect 10 1 11 0;
#X connect 10 2 6 0;
#X connect 11 0 4 1;
#X connect 12 0 2 0;
#X connect 13 0 2 1;
#X connect 20 0 3 0;
#X connect 20 0 10 0;
#X connect 22 0 2 0;
#X connect 23 0 22 0;
#X connect 23 0 14 0;

_________________________________________________________________
Get a preview of Live Earth, the hottest event this summer - only on MSN 
http://liveearth.msn.com?source=msntaglineliveearthhm





More information about the Pd-list mailing list