I am facing some problems I don’t know how to troubleshoot with the fout opcode. My idea was to generate multiple files from my csd so I could mix later. When I try to record, a few things happen:
I keep seeing a message “Closing kick.wav” on the terminal, while csound is running. I end up with a short file that is not the full real-time performance;
The file is usually distorted, if you look at the waveform (see attachment) it looks like there are samples missing;
While troubleshooting, I tested to create an instrument to record the stereo monitor out with no success (there was no audio on the file).
Recording out of CsoundQT does work, but only the stereo output.
No effect on changing the Sample Rate…
Am I missing something?
I am attaching the csd I am working on.
I am using MacOS Sequoia 15.3.2, M2. I am running CsoundQT 1.1.3, and Csound 6.18
i think i can help you with that:
you run your instr 101 ( which has kick.wav in it ) many times, and each time it writes the signal from the beginning.
its kind of overwritten on the same file. i suggest for the solution to do this:
send signal from your instr 101 to another instr that runs for longer duration and record the file there
Don’t have time to look over your file at the moment, will try later. Here’s an example using monitor and fout. Perhaps it will help lead you to a solution.
Parham’s suggestion did work. I had to set up a few global audio variables. And create the sends from the instruments, by adding the signal to the audio variable. Also, I created an instrument that runs forever like so:
What you are creating is very cool. Thanks for posting and sharing it.
I can’t wait to hear all the sections of this very cool generative piece/system and hope you will share that too.
Could you post your specific fix that supports the fout with globals as you excerpted in your previous email?
I would love to share this with my students at Berklee. (and plan to share section01 - with the fouts commented out for now)
many of them, as you would imagine, are into grooves (like the ones you are creating) and generative csds. (and me too!)