# Cabbage, record a sound file

**URL:** <https://forum.csound.com/t/cabbage-record-a-sound-file/516>\
**Category:** Newbies\
**Created:** [October 2, 2021, 1:57pm UTC](https://forum.csound.com/t/cabbage-record-a-sound-file/516 "2021-10-02T13:57:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tux](https://forum.csound.com/letter_avatar_proxy/v4/letter/t/f4b2a3/32.png) [@tux](https://forum.csound.com/u/tux)\
**Post date:** [October 2, 2021, 1:57pm UTC](https://forum.csound.com/t/cabbage-record-a-sound-file/516/1 "2021-10-02T13:57:52Z")

</div>

Hello,  
a simple question: using Cabbage, what is the correct way to record my live performance?  
I use: Cabbage 2.8.0 on Ubuntu 18.04.

Thanks,  
t.

---

<div class="post-metadata">

**Author:** ![rory](https://forum.csound.com/user_avatar/forum.csound.com/rory/32/7_2.png) [@rory](https://forum.csound.com/u/rory)\
**Post date:** [October 2, 2021, 2:59pm UTC](https://forum.csound.com/t/cabbage-record-a-sound-file/516/2 "2021-10-02T14:59:30Z")

</div>

Hi @tux You can use the [fout](https://csound.com/docs/manual/fout.html) opcode to record the output of your orchestra to disk. Btw, you might get more information on the Cabbage forum. For example, this [thread](https://forum.cabbageaudio.com/t/unable-to-create-output-file-solved/985/4) features a basic instrument that will write output to dis.

---

<div class="post-metadata">

**Author:** ![tux](https://forum.csound.com/letter_avatar_proxy/v4/letter/t/f4b2a3/32.png) [@tux](https://forum.csound.com/u/tux)\
**Post date:** [October 2, 2021, 4:23pm UTC](https://forum.csound.com/t/cabbage-record-a-sound-file/516/3 "2021-10-02T16:23:30Z")

</div>

Using the `instr 1000` (as explained in the thread), the .wav file is saved correctly.  
In the sco I write: `i 1000 0 60`, so, if I understand correctly, before playing I have to set the duration in seconds (in this case 60 seconds).  
However it works fine.

Thanks,

t.
