[LAD] Csound question

Fons Adriaensen fons at linuxaudio.org
Sun Mar 6 18:28:36 CET 2022


Hello all,

See below...

What I want to achieve is to take some action when instr 85 ends.
I naively tried using 'gidur' as p3 for instr 85 in the score, but
that doesn't work.

So how do I trigger instr 86 at the right time ?


<CsInstruments>

instr 84  
gidur       filelen     $INPFILE
print       gidur
endin
 

instr 85    ; set its duration from the value found in instrument 84
p3 = gidur
; process input from $INPFILE
endin


instr 86
; Should do something when instr 85 ends.
endin

</CsInstruments>


<CsScore>
i84 0  0.1 
i85 +  1   ; p3 is just a dummy
</CsScore>

TIA,

-- 
FA



More information about the Linux-audio-dev mailing list