[PD] how to know if a file has more than one channel?

altern altern2 at gmail.com
Sat May 18 17:49:58 CEST 2013


On 18 May 2013 17:09, Martin Peach <martin.peach at sympatico.ca> wrote:

> On 2013-05-18 09:57, altern wrote:
>
>> hi
>>
>> I would like to be able to distinguish between mono and stereo files at
>> loading time. I am loading the sound with soundfiler using this messages
>> which works both for stereo and mono files
>>
>> read -resize path_to_file table1 table2
>>
>> any suggestions? maybe there is some way to check if the second table is
>> full with zeros?
>>
>
>
> You could first read the file into [iemlib/soundfile_info] and take the
> fifth item in the output list, which is the number of channels.



aha, thanks thats what I was looking for. I must have thought about the
externals of course!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130518/a370f4a6/attachment-0001.htm>


More information about the Pd-list mailing list