Hi, (using Pd version 0.41.4-extended on Gentoo Linux (pd-overlay))
I am trying to read a short soundfile (wav/aiff) from disc into an array and then play the data of the array into a [dac~]. In the meanwhile to sounds like "something" but itt has nothing to do with the original file, which plays well via mplayer, vlc etc. #> file oneshot.wav gives me oneshot.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 22050 Hz #> file oneshot.aiff gives me oneshot.aiff: IFF data, AIFF audio Only reading the file via the last "raw" command fills the array with anything else then nulls. Both top commands seem to do nothing at all. I copied the stuff from different help entries. Attached you will find the according patch. What did I wrong with this? Thank you very much in advance for any help! mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows.
#N canvas 590 75 737 1007 24; #N canvas 0 0 450 300 (subpatch) 0; #X array array1 5379 float 0; #X coords 0 1 5378 -1 300 100 1; #X restore 131 321 graph; #N canvas 0 0 450 300 (subpatch) 0; #X array array2 5381 float 4; #X coords 0 1 5380 -1 300 100 1; #X restore 131 427 graph; #X obj 17 262 soundfiler; #X floatatom 16 343 0 0 0 0 - - -; #X msg 452 557 \; pd dsp 0; #X msg 177 556 \; readout 1 \; pd dsp 1 \;; #X floatatom 30 975 0 0 0 0 - - -; #X obj 36 889 env~ 16384; #X obj 109 855 *~; #X obj 245 925 line~; #X msg 297 847 0 100; #X obj 109 953 hip~ 5; #X msg 41 670 bang; #X msg 14 632 set array2; #X obj 35 802 tabplay~ array2; #X obj 111 1029 dac~; #X msg 266 741 22050 1000; #X msg 125 742 0 22050; #X msg 283 805 100 100; #X msg 68 709 22050; #X msg 35 67 read /tmp/oneshot.wav array2; #X msg 56 152 read -resize /tmp/oneshot.wav array2; #X msg 63 203 read -raw 128 2 2 b /tmp/oneshot.wav array2; #X connect 2 0 3 0; #X connect 7 0 6 0; #X connect 8 0 11 0; #X connect 9 0 8 1; #X connect 10 0 9 0; #X connect 11 0 15 1; #X connect 12 0 14 0; #X connect 13 0 14 0; #X connect 14 0 7 0; #X connect 14 0 15 0; #X connect 16 0 14 0; #X connect 17 0 14 0; #X connect 18 0 9 0; #X connect 19 0 14 0; #X connect 20 0 2 0; #X connect 21 0 2 0; #X connect 22 0 2 0;
_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list