How to add crescendo/diminuendo to lines?

Hi all,
Does anyone know how to add a crescendo/diminuendo to a glissando? I’ve been using “lineto” for making glissandi, and it works fine, I just need to add dynamics/amplitude alterations to it. Thanks for any help! :pray:

You can do it in the same way, but control the amplitude instead of the pitch.


instr 2
aEnv linen 1, p3/2, p3, p/2
aSig oscili aEnv, aEnv*1000
outs aSig, aSig
endin