ADSR with latching attack?

blakeAlbion

Well-known member
Hello!

Has someone made an envelope generator for the library that has a "latching" attack? Meaning once the envelope gets a noteOn trigger, it will climb to peak attack even if noteOff happens.

IIRC this is a common behavior of envelope generators, including Moog.

Thanks,
Ben
 
A real envelope generator does not use timeouts. It only progresses from Attack phase to Decay phase when Attack reaches the peak value of the envelope, and it should do this whether or not the key is still depressed. Releasing the key should only have an effect when the envelope reaches Sustain phase.
 
I think you just have to hold off reporting noteOff to the envelope till isSustain() returns true. The releaseNoteOn parameter may also have an effect on this behaviour.
 
Hello!

Has someone made an envelope generator for the library that has a "latching" attack? Meaning once the envelope gets a noteOn trigger, it will climb to peak attack even if noteOff happens.

IIRC this is a common behavior of envelope generators, including Moog.

Thanks,
Ben

You're thinking of the "unconditional contour" option on the MemoryMoog. It's not common, but an interesting option nevertheless - kicking off a cycle from a trigger rather than following a gate.
 
Back
Top