Write two separate buffers to a stereo audio file

Rory Wallace's icon

I have two buffers used together for a stereo signal (L + R)

Obviously they both write to separate files when using a write message

Is there any way to write them to 1 stereo file?

or would I have to use something like a polybuffer?

andrea agostini's icon

Hi.

With [mxj buf.Op] you can merge the two buffers into one.

hth
aa

Rory Wallace's icon

Hey thanks for your response,

Is there a way to do it without using java?

Peter McCulloch's icon

You can use peek~/poke~ to write them into a stereo buffer and then save that. I forget if there's something in JavaScript for this now.

Alternatively, if this is a batch job, you could use a command line util like Sox. I had a directory of large sound files split into stereo and merging them was quite easy.