Changing Metro Frequency – Csound Noobs

I’m not sure why you’re using global variables, but that’s not the issue. The issue if you’re casting a k signal as an i constant. Hence no change to the metro frequency. Here is a tidied up version of what you have that woks fine.

event_i "i", "thing", 0, 100

instr thing
    kMetroSeg linseg 0, 20, 10
    kTrig metro kMetroSeg
    schedkwhen kTrig, 0, 4, "thing2", 1, 0.1
endin


instr thing2
    aout oscil 0.1, 100
    aout2 oscil 0.1, 200
    aout3 oscil 0.1, 300
    aMix= aout+aout2+aout3
    outs aMix, aMix
endin

Read more here: Source link