env2~ Reference

Envelope generator

env2~

Examples

Inlets

attack [auto]

The duration in ms of the attack portion of the envelope. This is the time it takes for the envelope to reach it's peak value.

release [auto]

The duration in ms of the release portion of the envelope. This is the time it takes to go from the peak level to silence.

hold [auto]

After the attack has started, setting the hold to a non zero-value will hold the envelope at the peak value. Setting the value to 0 will release the hold and start the release.

trigger [signal]

Trigger the envelope attack with a non-zero signal value.

Outlets

out [signal]

Send a non-zero signal value to trigger a sample accurate envelope with an attack and release.

mute [bang]

Bang after the envelope has finished.

mute [bang]

Test

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

attack [auto]

The duration in ms of the attack portion of the envelope. This is the time it takes for the envelope to reach it's peak value.

hold [auto]

After the attack has started, setting the hold to a non zero-value will hold the envelope at the peak value. Setting the value to 0 will release the hold and start the release.

release [auto]

The duration in ms of the release portion of the envelope. This is the time it takes to go from the peak level to silence.

reset [bang]

reset

trigger [signal]

Trigger the envelope attack with a non-zero signal value.

See Also

Name Description
adsr~ Attack-Decay-Sustain-Release envelope generator
line~ Linear ramp generator
smoothstep~ Smoothed fade of inputs