Pagano, Patrick wrote:
Hello

I am writing wav files into tables is there a way to set the length of a pan 
0-1 and back to 0 based on the size of the wav file?
You mean you want the pan to *move* from 0 to 1 in the same time as the length of the file (array)? If this is the case you have to convert from samples to milliseconds and you could use that for a [line~]

I had created the small attached abstraction to assist me in this kind of stuff.

Lorenzo


pp

_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management ->  
http://lists.puredata.info/listinfo/pd-list

#N canvas 265 494 300 288 10;
#X obj 61 19 loadbang;
#X obj 47 260 outlet;
#X obj 88 155 t b f;
#X obj 61 128 sel 0;
#X msg 47 171 0;
#X obj 88 184 /;
#X obj -16 47 inlet samps;
#X obj 61 82 samplerate~;
#X obj 61 104 f;
#X obj -16 103 f \$1;
#X floatatom 97 105 5 0 0 0 - - -;
#X obj 130 213 * 1000;
#X obj 130 259 outlet msec;
#X obj 47 210 f;
#X connect 0 0 7 0;
#X connect 0 0 9 0;
#X connect 2 0 5 0;
#X connect 2 1 5 1;
#X connect 3 0 4 0;
#X connect 3 1 2 0;
#X connect 4 0 13 0;
#X connect 5 0 11 0;
#X connect 5 0 13 0;
#X connect 6 0 9 0;
#X connect 7 0 8 0;
#X connect 7 0 10 0;
#X connect 8 0 3 0;
#X connect 9 0 5 0;
#X connect 11 0 12 0;
#X connect 13 0 1 0;
#N canvas 15 90 449 232 10;
#X floatatom 42 164 15 0 0 0 - - -;
#X floatatom 42 73 5 0 0 0 - - -;
#X text 27 49 samples;
#X text 142 164 seconds;
#X text 19 13 samptosec: Convert samples to seconds (and msec) at current
samplerate;
#X msg 85 72 44100;
#X msg 133 72 48000;
#X floatatom 129 138 8 0 0 0 - - -;
#X text 179 134 second outlet gives mseconds;
#X text 36 206 Lorenzo Sutton 2008 lsutton@;
#X text 207 206 libero.it;
#X obj 356 204 sectosamp;
#X obj 42 114 samptosec 88200;
#X text 301 204 see also;
#X connect 1 0 12 0;
#X connect 5 0 12 0;
#X connect 6 0 12 0;
#X connect 12 0 0 0;
#X connect 12 1 7 0;
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to