[PD] Re: [linux-audio-user] Repairing wav files written by pd 64bit

thewade pdman at aproximation.org
Mon Mar 7 22:34:34 CET 2005


> On Mon, 7 Mar 2005 11:27:32 -0700
> \"thewade\" <pdman at aproximation.org> wrote:
>> hello,
>> 
>> I have been asking that the developers of PD help me by repairing the
>> wave file read and write objects in the 64-bit environment as the
>> headers of the PD written files are all messed up, and PD cant read
>> in wav files without the user having to overide the headers. I am
>> patient an hopefully something will happen there soon.
>
>
> How about replacing the current WAV read/write objects with a wrapper
> around the libsndfile routines. This will allow you to read and write
> much more than just WAV files, the code works with either endian-ness
> and works on 64 bit systems.
> 
> libsndfile is already used for file I/O in SuperCollider and I believe
> John ffitch (spelling?) is also working on using in Csound.
> 
> Erik

Is this the way writeanysf~ works? What package is that object in?

I learned how to repair the wav file headers from the linux-audio-users
list: remove all the data leading up to the \'data\' text in the wav file,
then run: sox -t raw -r 48000 -swc2 broken-wave.raw corrected.wav

That worked, but in order to fix my source can you tell me how to see
data in the wav files raw so I can do a diff and see what is different?
I used vi to delete the header info for the repair, but all data that
wasnt ascii just showed up as ^@.

Thanks for the help!
-thewade




More information about the Pd-list mailing list