Cabbage Logo
Back to Cabbage Site

Moogladder envelope

I’m trying to create an envelope to control moogladder cutoff frequency I’ve tried adding a madsr by using
kenv madsr katt, kdec, ksus, krel
asig moogladder asig, kcf*kenv, kres

With no success does anyone have any ideas another way to implement this

When controlling a filter’s cutoff frequency you will normally get better results using an envelope that generates exponentially curved segments, such as expon, expseg, expsegr, transeg or transegr. There is a version of madsr called mxadsr that also generates curves, but I normally recommend that people use the others as they are ultimately more powerful. Here is a filter that rises up quickly from 50 to 12000 Hz (attack segment) then decays down to 200 Hz slowly (decay), sticks at 200 Hz while the note is being held (sustain) and when the note is released, descends to 20 Hz quickly (release).

aenv  expsegr    50, 0.3, 12000, 3, 200, 0.1, 20
asig  moogladder asig, aenv, 0.6