beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
has no op id!
ScaledEnvelop is an envelope which can be scaled to any range

summary (oneliner)

doc

youtube id

collections

related ops

Inputs

Audio In (Object)

Attack (Number)

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


Attack Curve (Number)

Release Curve (Number)

The shape of the release


Min (Number)

The envelope's min output value. This is the value which it starts at and where it will end


Max (Number)

The envelope's max output value. In other words, the value at the peak of the attack portion of the envelope


Exponent (Number)

The envelope's exponent value


Outputs

Audio Out (Object)

ScaledEnvelope on Oscillator Frequency Example:

A «ScaledEnvelope»-op is connected to the «Frequency»-port of an «Oscillator». On click the «Trigger Attack / Release»-port of the Envelope is triggered which changes the frequency of the Oscillator. It is important to set the «Min» and «Max» of the ScaledEnvelope right, in this case «Min» is set to a «10» – a very low frequency which cannot be heard, and «Max» is set to «400». When the envelope reached the «Release»-portion of the ADSR-envelope, the signal will remain the «Min»-signal, in this case the Oscillator will oscillate at 10Hz.



Credits

  • Uses library: Tone.js (Webaudio Library)

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using ScaledEnvelope

Public Patches using ScaledEnvelope