Page 1 of 1

Read and / or Write Multichannel Wav Files

Posted: Tue Oct 02, 2018 3:59 am
by aronb
Hi,

I was playing with the wave file primitive and can seemingly read in an 8 channel wave (reports success and 8 channel file). No real schematic I can post at the moment.

But I see no way to convert the Multichannel wave in men into a stream??? Stereo yes, but not more than 2 channels. Do you use the read prim as mono for each channel? Couldn’t seem to get that working either though, but I’m not a guru of these prims either!

Is this possible, and will the next version be able to both read and write Multichannel Wave files?

Thanks,
Aron

Re: Read and / or Write Multichannel Wav Files

Posted: Tue Oct 02, 2018 3:57 pm
by aronb
All,

Here is a schematic and 2 different files.
One is a simple 2 channel wave file, and the other is an 8 channel wave file.

NOTE: Both load and indicate correctly, but I do not understand how to read (and hopefully write) different file channel formats.

Here is a zip file with schematic and wave file samples:
https://drive.google.com/open?id=1cACQN_P8_XEzRE7yAAFfX1MfGetvHv_M

Thanks for taking a look and any comments,

Aron

Re: Read and / or Write Multichannel Wav Files

Posted: Wed Oct 03, 2018 9:42 am
by Spogg
Hi Aron

I can confirm that the 8 channel wave doesn’t play.

I believe the wav load prim just reads the header in the wav and outputs that information. My understanding is that FS only supports mono or stereo files for loading and playing.
You would need to break down the source wav in a sound editor to provide 4 stereo or 8 mono wavs and load them in accordingly.

Perhaps you could contact MyCo for a feature request if it’s important for you.

Cheers

Spogg

Re: Read and / or Write Multichannel Wav Files

Posted: Thu Oct 04, 2018 12:04 am
by aronb
Well I thought that might be the case...

I found this:
https://github.com/jstrait/wavefile

Got very excited (it does everything I want), only to find out it is for Ruby 2.0 or higher.

Still looking for a way to do this.

Aron