Read and / or Write Multichannel Wav Files

For general discussion related FlowStone
Post Reply
User avatar
aronb
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA
Contact:

Read and / or Write Multichannel Wav Files

Post 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
User avatar
aronb
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA
Contact:

Re: Read and / or Write Multichannel Wav Files

Post 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
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Read and / or Write Multichannel Wav Files

Post 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
User avatar
aronb
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA
Contact:

Re: Read and / or Write Multichannel Wav Files

Post 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
Post Reply