# How to export a multichannelbuffer to wav or mp3?

**URL:** https://discourse.processing.org/t/how-to-export-a-multichannelbuffer-to-wav-or-mp3/16409
**Category:** Libraries
**Created:** [December 15, 2019, 1:08am UTC](https://discourse.processing.org/t/how-to-export-a-multichannelbuffer-to-wav-or-mp3/16409 "2019-12-15T01:08:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![molo32](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@molo32](https://discourse.processing.org/u/molo32)
#### Post date: [December 15, 2019, 1:08am UTC](https://discourse.processing.org/t/how-to-export-a-multichannelbuffer-to-wav-or-mp3/16409/1 "2019-12-15T01:08:51Z")

</div>

I am using minim and I have an audio inside a MultiChannelBuffer  
How can I export it to wav or mp3, if you can’t, do you know any way to achieve it.

I use java processing

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [December 15, 2019, 6:38am UTC](https://discourse.processing.org/t/how-to-export-a-multichannelbuffer-to-wav-or-mp3/16409/2 "2019-12-15T06:38:13Z")

</div>

not sure Minim can write audio files?  
try the Beads library ( also from contribution manager )  
[http://www.beadsproject.net/](http://www.beadsproject.net/)  
[http://www.beadsproject.net/doc/net/beadsproject/beads/data/audiofile/AudioFileWriter.html](http://www.beadsproject.net/doc/net/beadsproject/beads/data/audiofile/AudioFileWriter.html)  
( not tested here )  
( also not sure about the multi channel thing ? float [][] means only stereo? )

is it about  
[https://en.wikipedia.org/wiki/Surround\_sound#Standard\_speaker\_channels](https://en.wikipedia.org/wiki/Surround_sound#Standard_speaker_channels) ?

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [December 19, 2019, 9:40pm UTC](https://discourse.processing.org/t/how-to-export-a-multichannelbuffer-to-wav-or-mp3/16409/3 "2019-12-19T21:40:41Z")

</div>

> [@molo32](#):
>
> I am using minim […] How can I export it to wav or mp3

I believe that you can use AudioRecorder. Documentation:

[http://code.compartmental.net/minim/audiorecorder\_class\_audiorecorder.html](http://code.compartmental.net/minim/audiorecorder_class_audiorecorder.html)

…and previous discussion of using it:

- [How do I record the audio input to a new audio render using minim - Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/28028/how-do-i-record-the-audio-input-to-a-new-audio-render-using-minim)
