[Csnd] stop csound
| Date | 2022-05-10 07:34 |
| From | jacopo greco d'alceo |
| Subject | [Csnd] stop csound |
Hi,
in my livecoding, when I render an algorithmic score as .wav I call the score with the -o test.wav flag.
If I want to stop after some minutes of recording I need to call an instrument with the exitnow() opcode.
I just discovered that in this way, csound does not end writing the .wav file properly (e.g. Max doesn't want to read them - anyway all the others programs like Reaper does not have problem). Anyway, I understood that I'm forcing csound to stop.
I tried to make an instrument after some time that with turnoff for all my alwayson and schedule(.., 0, -1) instrument, but csound freezes.
Is there an opcode or a way I can properly clean exit from csound?
It's almost like pressing the stop button in CsoundQt, I tried for exemple to press the stop button and export a .wav file and the .wav is properly ended.
Thank you,
j
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |
| Date | 2022-05-10 11:16 |
| From | John ff |
| Subject | Re: [Csnd] stop csound |
Platform? Version?
On 10 May 2022, at 07:35, jacopo greco d'alceo <jacques.mascheroni@gmail.com> wrote: Hi, |
| Date | 2022-05-10 11:45 |
| From | jacopo mascheroni |
| Subject | Re: [Csnd] stop csound |
| im sorry.. i always forgotĀ macOS 10.15.7 csound 6.17
|
| Date | 2022-05-10 14:07 |
| From | Victor Lazzarini |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] stop csound |
Try using the opcode
event("e", 0, 1)
when you want to stop (it's a k-rate opcode).
For example
instr 2
event("e", 0, 1)
endin
instr 1
a1 oscili 0dbfs,440
out a1
endin
schedule(1,0,-1)
schedule(2,5,1)
> On 10 May 2022, at 07:34, jacopo greco d'alceo |
| Date | 2022-05-10 15:25 |
| From | jacopo mascheroni |
| Subject | Re: [Csnd] [EXTERNAL] [Csnd] stop csound |
| Ohh, amazing! It works like a charm. Thank you very much!
|