I’m trying to create a couple of “macros” for envelopes. i.e. build a couple of generic envelope shapes and have them set as variables so that i don’t have to type envelope manually or even copy paste them. Instead i just type “fast_envelope” or “slow_envelope” and i’m done. However so far had no luck i guess i’m doing something wrong.
I would guess most of us would point you at use_synth_defaults:
play 50
use_synth_defaults amp: 0.5, cutoff: 70
play 50
use_synth_defaults cutoff: 90
play 50
But there should be plenty of other ways such as: define a block of code
to do what you want, then call it with a parameter. I’ve included a
simple example:
Someone else might give you a more specific example…