[PD] tabread4~ help
briencrean at eircom.net
briencrean at eircom.net
Tue Aug 1 23:36:19 CEST 2006
Hi all,
Im struggling with understanding how the tabread4~ object works. Im still pretty new to pd.
I have read through the examples and the documentation and searched through some of the archive but I still dont fully get it!
I want to understand this object and also use it (or another object) to apply real-time effects to samples and use it as lookup table.
The problems I have are:
1.How do you know what size to specify for the array that tabread4~ will read from for different length soundfiles?
-Do I always use the output from soundfiler as the length of the array - 2?
2.Again regarding the length, taking the example B07.sampler.pd, what happens if the length of the sound file changes? Do I need to change the value I am multiplying by or is that dependant on the sampling rate of the audio file?
-For example I changed the array range 0 to 62078 in the 1st attached patch for the same sound file (voice.wav) which is the full length of that file (1 second), it seems to sound ok when the number box is dragged
Also I experimented with attaching a phasor object to the inlet, 2nd patch attached, to cycle through at different speeds. Even though when viewing the voice.wav file in media player it is a second long but when using the line object I need to specify a message of 62709 in 1400 milli seconds for it to sound right?
Sorry to barrage you guys with so many questions.
Thanks guys!
Brien
-----------------------------------------------------------------
Find the home of your dreams with eircom net property
Sign up for email alerts now http://www.eircom.net/propertyalerts
-------------- next part --------------
#N canvas 350 58 539 457 12;
#X obj 64 63 soundfiler;
#X floatatom 62 103 10 0 0 0 - - -;
#X obj 43 355 dac~;
#X obj 122 147 print x;
#X floatatom 38 151 5 0 0 0 - - -;
#X obj 38 254 line~;
#X obj 38 220 pack 0 100;
#X obj 38 189 * 441;
#X msg 159 199 bang;
#N canvas 0 0 450 300 graph7 0;
#X array array11 62079 float 2;
#X coords 0 1 62079 -1 200 140 1;
#X restore 217 83 graph;
#X obj 174 249 tabplay~ array11;
#X obj 39 297 tabread4~ array11;
#X msg 67 36 read voice.wav array11;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 4 0 7 0;
#X connect 5 0 11 0;
#X connect 6 0 5 0;
#X connect 7 0 6 0;
#X connect 8 0 10 0;
#X connect 10 0 2 0;
#X connect 10 0 2 1;
#X connect 11 0 2 0;
#X connect 11 0 2 1;
#X connect 12 0 0 0;
-------------- next part --------------
#N canvas 488 127 547 465 12;
#X obj 64 63 soundfiler;
#X floatatom 62 103 10 0 0 0 - - -;
#X obj 39 401 dac~;
#X obj 122 147 print x;
#N canvas 0 0 450 300 graph7 0;
#X array array11 62079 float 2;
#X coords 0 1 62079 -1 200 140 1;
#X restore 217 83 graph;
#X obj 35 343 tabread4~ array11;
#X msg 67 36 read voice.wav array11;
#X obj 30 269 phasor~;
#X obj 30 306 *~ 62079;
#X floatatom 25 230 5 0 0 0 - - -;
#X msg 118 211 0;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 5 0 2 0;
#X connect 5 0 2 1;
#X connect 6 0 0 0;
#X connect 7 0 8 0;
#X connect 8 0 5 0;
#X connect 9 0 7 0;
#X connect 10 0 7 0;
More information about the PD-list
mailing list