[PD] reading a 4-channel aif

Michael Zacherl. sdiy-mz01 at blauwurf.info
Fri Aug 5 16:53:43 CEST 2011


Hi Peter!

> Michael Zacherl. wrote:
>> Hello,
>>   for recording four channels I used [open -bytes 3 filename] fed into [writesf~ 4] in an earlier session.
>> Now I need to split this interleaved sound file up into four mono-files for importing them elsewhere.
> You could use Sox or Audacity for example.

I looked at it with audacity, the files are definitely ok.
I'm vary about sox, but should be ok if it's just byte-order or header rewrite.

>> I tried [open filename] -- [readsf~ 4] but just get digital noise.
>> Since relying on its detection capabilities doesn't seem to work I tried to specify the  parameters, starting with  [open filename 0 200 4 3 b] .
> Although AIF files are big-endian, did you try to use the "l" flag nevertheless?

Quicktime shows them as big-endian files.
When trying the "l" flag I did this with entering the [open filename 0 200 4 3 l ] options.
This sounded quite as if I just used [open filename] .

However there seems to be no other option than converting this files to .wav in order to maintain the 24-bit resolution.

>> It changes the noise but doesn't deliver the proper audio stream.
>> Admittedly I'm not sure about the header size
>> How could I get this to work?
> Try as well: Converting the 24bit aif file to a 4Chn wav file (Sox) and try that one. Convert the 24bit aif file to 16bits and try again. Make sure to report back to the list with your results!

Converting with sox was easy, just filenames are needed to get the audio into a .wav container.
Checking with Audacity showed that it properly worked.
I'm not sure how to get a particular channel from this files from sox but at least I can read them into Pd.

Thanks, Michael.  



--
keep your ears open: http://blauwurf.at
http://soundcloud.com/noiseconformist






More information about the Pd-list mailing list