| Hi,
I'm writing to request the addition of an ficlose opcode to complement
fiopen.
Currently, a csd like (run in realtime):
sr=44100
ksmps=1
nchnls=2
instr 1 ;untitled
ipreset = p4
Sfilename sprintf "test-%2i.preset", ipreset
ifile fiopen Sfilename, 0
;ifile fiopen "test", 0
foutir ifile, 0, 0, 1, 2, 3, ipreset
;flashtxt 1, "Instr 1 live"
printf "Stored preset :%i in file %s\n",1, ipreset, Sfilename
endin
i1 0 1 10
i1 2 1 20
i1 3 1 30
i1 4 1 40
f 0 3000
e
Will produce valid files only when csound closes. It would be very nice
if something like ficlose could be added.
I think this would be very useful (among other things) for things like
preset storing, to be able to store a preset and recall it, without
having to exit csound.
Thanks,
Andrés
|