Hi,

Pd says your wav file is at 22050 Hz? Maybe your Pd session is at the default rate (44100 if i m not mistaken), that's why it doesn't sound like it should.
Your patch looks fine to me, I mean it should work.

Pierre

2010/3/11 <meino.cramer@gmx.de>

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.

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