Csound Csound-dev Csound-tekno Search About

[Csnd] fout

Date2021-10-09 18:46
FromEnrico Francioni <00000005323c8739-dmarc-request@LISTSERV.HEANET.IE>
Subject[Csnd] fout
Hi!

In a csd I would like:

1. make sure that every time fout exports an audio file (eg .wav), it does not overwrite the last file generated with fout, but is saved as a new file;

2. that the new files generated with fout are renamed progressively, for example:
• Out_REC_01.wav
• Out_REC_02.wav
• Out_REC_03.wav
• Out_REC_04.wav
• Out_REC_05.wav
etc.

Some idea?
Thanks…
Enrico

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

Date2021-10-10 09:30
Fromjoachim heintz
SubjectRe: [Csnd] fout
if you start the record instrument several times, you could do somthing 
like (not tested):

giNum init 1
instr Record
  S_filename sprintf ""Out_REC_%02d.wav", giNum
  giNum += 1
  fout S_filename, ....
endin

best -
	joachim


On 09/10/2021 19:46, Enrico Francioni wrote:
> Hi!
> 
> In a csd I would like:
> 
> 1. make sure that every time fout exports an audio file (eg .wav), it does not overwrite the last file generated with fout, but is saved as a new file;
> 
> 2. that the new files generated with fout are renamed progressively, for example:
> • Out_REC_01.wav
> • Out_REC_02.wav
> • Out_REC_03.wav
> • Out_REC_04.wav
> • Out_REC_05.wav
> etc.
> 
> Some idea?
> Thanks…
> Enrico
> 
> 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
> 

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