Csound Csound-dev Csound-tekno Search About

Re: soundout/fout: writing to different files for each time instrument is called??

Date1999-07-10 18:49
FromGabriel Maldonado
SubjectRe: soundout/fout: writing to different files for each time instrument is called??
At present time an 'fclose' opcode doesn't exist yet. So, each time a
new file is created, it will be written continuously up the end of
Csound session. However now it is possible to pass string arguments by
the score, so it is possible to write more file, opening them at
different times. It is not good for realtime performances. Also, a
string manipulation opcode doesn't exist, so the filenames must be
already defined by the user as string constants at the orc/sco design
time. So, for now, you have to do this task manually, editing the wave
files generated afer the realtime session by means of a wave editor
(such as Cool Edit).
-- 
Gabriel Maldonado

http://web.tiscalinet.it/G-Maldonado/home2.htm

richard bowers wrote:
> 
> Can anyone help? This is what I want to do:
> 
> Write different soundfiles using one soundout each time the instrument is
> called from the score ie:
> 
> score:
> i1    0    10
> i1    0    5
> i1    2    10
> etc.
> 
> resulting in (say) sound1.wav, sound2.wav, sound3.wav and so on.
> 
> I would like to do it without specifying the names in advance but just to
> have an incremental numbering system. This is because, ultimately, I would
> like to do it
> (using the DirectCsound fout opcode) in a realtime MIDI setup.
> 
> Subsequently, I would need to apply the same principle to the soundin/diskin
> ugs for retrieving the files.
> 
> Thanks in advance.
> Richard Bowers.