Csound Csound-dev Csound-tekno Search About

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

Date1999-07-10 14:49
Fromrichard bowers
Subjectsoundout/fout: writing to different files for each time instrument is called??
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.