beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
has no op id!
ADSR envelope generator, can be connected to an Audio Port

summary (oneliner)

Envelopeis an ADSR envelope generator. Tone.Envelope outputs a signal which can be connected to dynamic input port of another tone.js-op or a signal. The second output port can be used to set the ADSR on synth-ops.

doc

youtube id

Inputs

Attack (Number)

When triggerAttack is called, the attack time is the amount of time it takes for the envelope to reach it's maximum value.


Decay (Number)

After the attack portion of the envelope, the value will fall over the duration of the decay time to it's sustain value.


Sustain (Number)

The sustain value is the value which the envelope rests at after triggerAttack is called, but before triggerRelease is invoked.


Release (Number)

After triggerRelease is called, the envelope's value will fall to it's miminum value over the duration of the release time.


Trigger Attack (Function)

Trigger the attack/decay portion of the ADSR envelope.


Velocity (Number)

How loud the attack will be triggered (0 = quiet, 1 = loud)


Attack Time (Number)

When Trigger Attack is triggered this is the time when it actually happens, +0 means now, +2 means in two seconds from now


Trigger Release (Function)

Triggers the release of the envelope.


Release Time (Number)

When Trigger Release is triggered this is the time when it actually happens, +0 means now, +2 means in two seconds from now


Outputs

Signal (Object)

Can be connected to a dynamic audio param port


Envelope Object (Object)

Can be connected to an envelope-port of a synth


Keyboard Synth Play Example:

Click in the canvas one to set focus, then use your computer keyboard to play the FmSynth



Credits

  • Uses library: Tone.js (Webaudio Library)

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using Envelope

Public Patches using Envelope