Adjusts Gate. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Adjusts Type. Range: 0–2. Default: 0. Linear scale. Units: unitless.
Adjusts Curve. Range: -1–1. Default: 0. Linear scale. Units: unitless.
Adjusts Loop. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Adjusts Retrigger. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Envelope as the Patch draws it, at default values: inlets on the left, outlets on the right.
An envelope shapes how loud a sound is over time. It listens to a gate: when the gate turns on the sound rises, and when it turns off the sound dies away.
The envelope multiplies the audio passing through it by a gain that follows an attack, decay, sustain and release shape. A rising edge on Gate starts the envelope. Depending on Type it can be a full ADSR (attack, decay, sustain, release), an AD (attack then decay to zero) or an AR (attack, hold while the gate stays on, release). Curve bends every segment between concave, linear and convex. It can loop for as long as the gate is held.
It is a gain stage for audio, not a control signal: put it on the sound path.
The done outlet sends an event: it is 1 for one block when the envelope finishes and returns to silence, that is when the release ends after Gate turned off or an AD cycle completes, and 0 otherwise. A looping envelope never finishes, and a Gate that rises during the release restarts it without a done. Cable it into a trigger input, such as Counter or Sample and hold, to advance something each time a note has fully died away.
Use it to turn a continuous source such as Oscillator into notes, to make plucks and swells, or to build rhythmic gating. The Polyphonic instrument already has an envelope for each voice.
The trigger, on (1) or off (0). Turning it on starts the envelope and holding it on keeps it running. Bind it to a momentary button or toggle in a Frame, or cable a control signal in: it counts as on from 0.5.
A short Attack with a medium Decay and zero Sustain makes a pluck.
Looping an AD envelope is a quick way to make a repeating sound for testing effects.
The envelope works on any channel count.
done is a one-block pulse, like Compare in Trigger mode. Cable it into a trigger input; to sequence notes, let it clock a Counter that picks the next pitch.
Each help patch is an ordinary Toy that teaches one idea. The diagram shows the Patch; the preview shows its Frame. Open it in TuneToys to play and edit it.
Fundamental pitch, capped below Nyquist; detune uses cents. Range: 20–20000 Hz. Default: 220 Hz. Logarithmic scale. Units: Hz.
Hz
Output gain. Range: 0–0.5 ×. Default: 0.12 ×. Linear scale. Units: linear gain.
×
Selects the implemented algorithm. Choices are discrete and are not LFO targets. Range: 0–7. Default: 0. Linear scale. Units: unitless.
Cycle offset; Gate rising edges restart phase from this position. Range: 0–1 cycles. Default: 0 cycles. Linear scale. Units: cycles.
cycles
Pitch offset in cents. Range: -1200–1200 cents. Default: 0 cents. Linear scale. Units: cents.
cents
On or off. A rising edge retriggers; held on runs the oscillator or envelope. A control cable switches it at 0.5. Range: 0–1. Default: 1. Linear scale. Units: unitless.
Semitones a full pitch bend on the MIDI input moves the note, up or down. Range: 0–48 st. Default: 2 st. Linear scale. Units: st.
st
Time constant of the slide from one MIDI note's pitch to the next; 0 jumps. Range: 0–2000 ms. Default: 0 ms. Linear scale. Units: ms.
ms
Envelope
Audio2ch
Audio2ch
Done1 lane
Time to rise to full gain. Range: 0–10000 ms. Default: 80 ms. Linear scale. Units: ms.
ms
Time to fall to sustain in ADSR, or zero in AD. Range: 0–10000 ms. Default: 250 ms. Linear scale. Units: ms.
ms
Held ADSR gain. Range: 0–100 %. Default: 60 %. Linear scale. Units: percent.
%
Time to return to zero. Range: 0–10000 ms. Default: 600 ms. Linear scale. Units: ms.
ms
On or off. A rising edge retriggers; held on runs the oscillator or envelope. A control cable switches it at 0.5. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Selects the implemented algorithm. Choices are discrete and are not LFO targets. Range: 0–2. Default: 0. Linear scale. Units: unitless.
Fundamental pitch, capped below Nyquist; detune uses cents. Range: 20–20000 Hz. Default: 220 Hz. Logarithmic scale. Units: Hz.
Hz
Output gain. Range: 0–0.5 ×. Default: 0.12 ×. Linear scale. Units: linear gain.
×
Selects the implemented algorithm. Choices are discrete and are not LFO targets. Range: 0–7. Default: 0. Linear scale. Units: unitless.
Cycle offset; Gate rising edges restart phase from this position. Range: 0–1 cycles. Default: 0 cycles. Linear scale. Units: cycles.
cycles
Pitch offset in cents. Range: -1200–1200 cents. Default: 0 cents. Linear scale. Units: cents.
cents
On or off. A rising edge retriggers; held on runs the oscillator or envelope. A control cable switches it at 0.5. Range: 0–1. Default: 1. Linear scale. Units: unitless.
Semitones a full pitch bend on the MIDI input moves the note, up or down. Range: 0–48 st. Default: 2 st. Linear scale. Units: st.
st
Time constant of the slide from one MIDI note's pitch to the next; 0 jumps. Range: 0–2000 ms. Default: 0 ms. Linear scale. Units: ms.
ms
Envelope
Audio2ch
Audio2ch
Done1 lane
Time to rise to full gain. Range: 0–10000 ms. Default: 20 ms. Linear scale. Units: ms.
ms
Time to fall to sustain in ADSR, or zero in AD. Range: 0–10000 ms. Default: 700 ms. Linear scale. Units: ms.
ms
On or off. A rising edge retriggers; held on runs the oscillator or envelope. A control cable switches it at 0.5. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Selects the implemented algorithm. Choices are discrete and are not LFO targets. Range: 0–2. Default: 1. Linear scale. Units: unitless.
A looping envelope that repeats while the gate is held.
Oscillator
MIDI1 lane
Audio2ch
Fundamental pitch, capped below Nyquist; detune uses cents. Range: 20–20000 Hz. Default: 220 Hz. Logarithmic scale. Units: Hz.
Hz
Output gain. Range: 0–0.5 ×. Default: 0.12 ×. Linear scale. Units: linear gain.
×
Selects the implemented algorithm. Choices are discrete and are not LFO targets. Range: 0–7. Default: 0. Linear scale. Units: unitless.
Cycle offset; Gate rising edges restart phase from this position. Range: 0–1 cycles. Default: 0 cycles. Linear scale. Units: cycles.
cycles
Pitch offset in cents. Range: -1200–1200 cents. Default: 0 cents. Linear scale. Units: cents.
cents
On or off. A rising edge retriggers; held on runs the oscillator or envelope. A control cable switches it at 0.5. Range: 0–1. Default: 1. Linear scale. Units: unitless.
Semitones a full pitch bend on the MIDI input moves the note, up or down. Range: 0–48 st. Default: 2 st. Linear scale. Units: st.
st
Time constant of the slide from one MIDI note's pitch to the next; 0 jumps. Range: 0–2000 ms. Default: 0 ms. Linear scale. Units: ms.
ms
Envelope
Audio2ch
Audio2ch
Done1 lane
Time to rise to full gain. Range: 0–10000 ms. Default: 10 ms. Linear scale. Units: ms.
ms
Time to return to zero. Range: 0–10000 ms. Default: 200 ms. Linear scale. Units: ms.
ms
On or off. A rising edge retriggers; held on runs the oscillator or envelope. A control cable switches it at 0.5. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Selects the implemented algorithm. Choices are discrete and are not LFO targets. Range: 0–2. Default: 0. Linear scale. Units: unitless.
A square LFO gates an envelope; each time the release finishes, the done outlet steps a counter that opens a filter one notch further.
Oscillator
MIDI1 lane
Audio2ch
Fundamental pitch, capped below Nyquist; detune uses cents. Range: 20–20000 Hz. Default: 220 Hz. Logarithmic scale. Units: Hz.
Hz
Output gain. Range: 0–0.5 ×. Default: 0.12 ×. Linear scale. Units: linear gain.
×
Selects the implemented algorithm. Choices are discrete and are not LFO targets. Range: 0–7. Default: 0. Linear scale. Units: unitless.
Cycle offset; Gate rising edges restart phase from this position. Range: 0–1 cycles. Default: 0 cycles. Linear scale. Units: cycles.
cycles
Pitch offset in cents. Range: -1200–1200 cents. Default: 0 cents. Linear scale. Units: cents.
cents
On or off. A rising edge retriggers; held on runs the oscillator or envelope. A control cable switches it at 0.5. Range: 0–1. Default: 1. Linear scale. Units: unitless.
Semitones a full pitch bend on the MIDI input moves the note, up or down. Range: 0–48 st. Default: 2 st. Linear scale. Units: st.
st
Time constant of the slide from one MIDI note's pitch to the next; 0 jumps. Range: 0–2000 ms. Default: 0 ms. Linear scale. Units: ms.
ms
Envelope
Audio2ch
Audio2ch
Done1 lane
Time to rise to full gain. Range: 0–10000 ms. Default: 10 ms. Linear scale. Units: ms.
ms
Time to fall to sustain in ADSR, or zero in AD. Range: 0–10000 ms. Default: 120 ms. Linear scale. Units: ms.
ms
Held ADSR gain. Range: 0–100 %. Default: 70 %. Linear scale. Units: percent.
%
Time to return to zero. Range: 0–10000 ms. Default: 200 ms. Linear scale. Units: ms.
ms
On or off. A rising edge retriggers; held on runs the oscillator or envelope. A control cable switches it at 0.5. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Selects the implemented algorithm. Choices are discrete and are not LFO targets. Range: 0–2. Default: 0. Linear scale. Units: unitless.
Repeats complete envelope cycles while Gate is held. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Restart from the current gain or reset to zero on a rising Gate. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Control LFO
Reset1 lane
Control1 lane
Cycle1 lane
Waveform of the oscillator. The random shapes draw a new value each cycle from a generator seeded by the node path, so every host and replay agrees. Range: 0–5. Default: 0. Linear scale. Units: unitless.
Cycles per second when Beats is 0. Range: 0.01–40 Hz. Default: 1 Hz. Logarithmic scale. Units: Hz.
Hz
Beats per cycle, synced to the shared transport. 0 uses Rate instead. Range: 0–64 beats. Default: 0 beats. Linear scale. Units: beats.
beats
Peak-to-peak amount of the output swing. Range: 0–1. Default: 1. Linear scale. Units: unitless.
Centre of the swing. Range: 0–1. Default: 0.5. Linear scale. Units: unitless.
Starting phase of the cycle, and where a Reset edge restarts it. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Where the Triangle peaks, or how the Saw bends. 0.5 is the plain shape. Range: 0–1. Default: 0.5. Linear scale. Units: unitless.
Counter
Trigger1 lane
Reset1 lane
Control2 lanes
Wrap1 lane
Count value that maps to 1 on the normalised lane and where wrapping or clamping happens. Range: 1–1000. Default: 10. Linear scale. Units: unitless.
Amount added on each trigger; negative counts down. Range: -10–10. Default: 1. Linear scale. Units: unitless.
Wrap past the limit back to 0 instead of clamping. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Select lanes
ControlAuto
ControlAuto
Scale
ControlAuto
ControlAuto
Input value that maps to Output min. Range: -10000–10000. Default: 0. Linear scale. Units: unitless.
Input value that maps to Output max. Range: -10000–10000. Default: 1. Linear scale. Units: unitless.
Output at Input min. Range: -10000–10000. Default: 0. Linear scale. Units: unitless.
Output at Input max. Range: -10000–10000. Default: 1. Linear scale. Units: unitless.
Bend of the mapping: negative eases in, positive eases out, 0 is linear. Range: -1–1. Default: 0. Linear scale. Units: unitless.
Hold the output inside its range instead of extrapolating. Range: 0–1. Default: 1. Linear scale. Units: unitless.
Filter
Audio2ch
Audio2ch
Filter cutoff, capped at 0.45 times sample rate. Range: 20–20000 Hz. Default: 1200 Hz. Logarithmic scale. Units: Hz.
Continuous low-pass, band-pass and high-pass morph. Range: 0–2. Default: 0. Linear scale. Units: unitless.
Selects the implemented algorithm. Choices are discrete and are not LFO targets. Range: 0–5. Default: 1. Linear scale. Units: unitless.
One or two cascaded state-variable stages; notch/all-pass retain their response semantics. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Reduces resonant gain as Q increases. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Audio output
Audio2ch
Note
Note
Note
Patch: Oscillator audio output connected to Envelope audio input. Envelope audio output connected to Filter audio input. Filter audio output connected to Patch outputs audio input. Control LFO control output connected to Envelope @gate input. Envelope done output connected to Counter trigger input. Counter control output connected to Select lanes control input. Select lanes control output connected to Scale control input. Scale control output connected to Filter @cutoff input.Connections as text
Oscillator audio output connected to Envelope audio input
Envelope audio output connected to Filter audio input
Filter audio output connected to Patch outputs audio input
Control LFO control output connected to Envelope @gate input
Envelope done output connected to Counter trigger input
Counter control output connected to Select lanes control input
Select lanes control output connected to Scale control input
Scale control output connected to Filter @cutoff input
The square LFO drives the gate socket: high opens the envelope, low starts the release.
done is 1 for one block when the release ends; it clocks the counter like a trigger.
Lane 1 of the counter (count / limit) is scaled and cabled into the filter cutoff, downstream of the envelope.
Frame preview (static). Controls show their default values.
Oscillator Selected waveform kernels, continuous morphing, harmonic shapes and phase/gate control; an optional MIDI input plays notes in the Toy's tuning.
Polyphonic instrument Eight owned, velocity-sensitive oscillator voices with ADSR, sustain and MPE, played from a MIDI cable in the Toy's tuning.
Compressor Peak/RMS compression with a sidechain key input, detector filtering, hold, adaptive release and channel linking.