Hello,
I recently moved from Csound to Cabbage (but still pretty new to Csound) and I’m trying to reproduce my additive synths using a master instr.
The problem is : the schedule opcode assigns a p3 value to the sub-instr and I can’t hold my notes anymore (like in the Cabbage synth template with vco2). How could I get rid of that fixed p3 ?
Thank you !
I tried using recursion (which is a solution), but I like to reschedule many two or three times the partial groups and I can’t imagine doing multiple loops in recursion.
Also, I don’t want to do additive synthesis manually because I’m generating a lot of partials.
Here is a very simplified version so that it is understandable :
form caption(“Untitled”) size(400, 300), guiMode(“queue”), pluginId(“def1”)
keyboard bounds(8, 158, 381, 95)-n -d -+rtmidi=NULL -M0
ksmps = 1
nchnls = 2
0dbfs = 1gisin = ftgen(0, 0, 16384, 10, 1)
instr 1
idur = 1 // fixed p3, can't hold my notes anymore inum = 1 imax = 5 while inum < imax do schedule(10, 0, idur, inum) inum += 1 od
endin
instr 10
aamp = 0.125 afrq = 220 * p4 a0 poscil3 aamp, afrq, gisin, 0 chnmix a0, "m0"
endin
instr 9
a0 chnget "m0" outs a0, a0 chnclear "m0"
endin
f 0 z
i 9 0 3600
(don’t know why blockquote hides the < … > parts, but it’s there)