A detector follows each channel's peak level. While it is above Threshold the gate is open and the audio passes unchanged. When it falls below, the gate waits for Hold, then closes over Release; when the level returns it opens over Attack. Closed means turned down by Range: −80 dB is near silence, −10 dB only softens the gaps. With Ratio below its top value the node is a downward expander: below threshold, every decibel the level falls takes Ratio − 1 more decibels off the output, never more than Range. At the top of the Ratio range, 20, it is a gate and closes fully.
The key input is a sidechain. While something is connected to it, the key's level opens and closes the gate and the main input is what is heard: a beat on the key chops a sustained pad into a rhythm. The key carries one channel, which then drives every channel of the main input, or exactly as many channels as the main input. Left unconnected, the main input drives the detector. The detector high-pass filters only what the detector measures, and Listen plays that filtered signal so you can hear what opens the gate.
Lookahead delays the audio by up to 10 ms while the detector reads it undelayed, so the gate is already open when an onset arrives. The node reports a fixed processing latency equal to the largest Lookahead its control can reach, and the rest of the graph is delayed to match; a smaller Lookahead inside that range moves only the detector, never the latency.
Use it to clean up noise between phrases, tighten drums, or, with a key, to gate one sound with the rhythm of another. To turn loud parts down rather than quiet parts, use the Compressor; to change the attack and decay of hits without a threshold, use the Transient shaper.
Downward expansion below the threshold, from 1:1 (none) to 20, which closes fully like a classic gate. In between, the further the level falls below the threshold, the more it is turned down, until Range stops it.
How quickly the gate opens, from 0.01 to 100 ms. Very short attacks can click on low notes; Lookahead lets you keep them short without losing the onset.
A high-pass, 0 to 2000 Hz, applied only to the detector (on the key when it is connected). Zero bypasses it. Raising it keeps bass from opening the gate.
From independent detectors per channel (0) to one detector that follows the loudest channel across the bundle (1), so every channel opens and closes together.
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: 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
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.
Duration of the held part in repeating ADSR/AR cycles. Range: 0–10000 ms. Default: 100 ms. Linear scale. Units: ms.
ms
Noise
Audio2ch
Peak amplitude of white noise. Each channel and node path owns a repeatable independent stream; preparation restarts it. Range: 0–0.5 ×. Default: 0.12 ×. Linear scale. Units: linear gain.
×
Mixer2 ch
Audio2ch
Pluck.in2ch
Envelope
dB
Position on a two-lane mix: −1 left, 0 centre, 1 right. Constant-power for a one-lane channel, balance for a two-lane one; ignored on other widths. Range: -1–1. Default: 0. Linear scale. Units: unitless. The ring fills from zero for this signed linear range. Manual editing is unavailable while this host owns the control.
Read only
Hiss.in2ch
Noise
dB
Position on a two-lane mix: −1 left, 0 centre, 1 right. Constant-power for a one-lane channel, balance for a two-lane one; ignored on other widths. Range: -1–1. Default: 0. Linear scale. Units: unitless. The ring fills from zero for this signed linear range. Manual editing is unavailable while this host owns the control.
Read only
Mix output level in decibels, after every channel. −60 dB is off; 0 dB leaves the sum unchanged. Range: -60–12 dB. Default: 0 dB. Linear scale. Units: dB.
dB
Gate
Audio2ch
Key1ch
Audio2ch
The gate is open while the detector level is above this. Range: -80–0 dBFS. Default: -30 dBFS. Linear scale. Units: dBFS.
dBFS
Attenuation when fully closed; 0 dB leaves the audio untouched. Range: -80–0 dB. Default: -60 dB. Linear scale. Units: dB.
dB
Downward expansion below threshold; 20 closes fully, a gate. Range: 1–20 :1. Default: 20 :1. Linear scale. Units: :1.
:1
How quickly the gate opens. Range: 0.01–100 ms. Default: 0.5 ms. Logarithmic scale. Units: ms.
ms
How long the gate stays open after the level falls below threshold. Range: 0–500 ms. Default: 30 ms. Linear scale. Units: ms.
ms
How quickly the gate closes after the hold. Range: 1–2000 ms. Default: 60 ms. Logarithmic scale. Units: ms.
ms
Delays the audio so the gate opens before an onset; adds latency equal to its largest admitted value. Range: 0–10 ms. Default: 0 ms. Linear scale. Units: ms.
ms
High-pass only in the detector (on the key when it is connected); zero bypasses it. Range: 0–2000 Hz. Default: 0 Hz. Linear scale. Units: Hz.
Hz
Outputs the filtered detector signal instead of the gated audio. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Blends independent detectors with the strongest detector across the bundle. Range: 0–1. Default: 1. Linear scale. Units: unitless.
Audio output
Audio2ch
Note
Note
Patch: Oscillator audio output connected to Envelope audio input. Envelope audio output connected to Mixer pluck.in input. Noise audio output connected to Mixer hiss.in input. Mixer audio output connected to Gate audio input. Gate audio output connected to Patch outputs audio input.Connections as text
Oscillator audio output connected to Envelope audio input
Envelope audio output connected to Mixer pluck.in input
Noise audio output connected to Mixer hiss.in input
Mixer audio output connected to Gate audio input
Gate audio output connected to Patch outputs audio input
Below Threshold the gate closes and turns the hiss down by Range.
Hold keeps it open through a short dip; Release sets how gently it closes.
Frame preview (static). Controls show their default values.
intermediate Teaches: listen, ratio, lookahead, detector_hp, link
A kick on the gate's key input chops a sustained pad into a rhythm.
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
Filter
Audio2ch
Audio2ch
Filter cutoff, capped at 0.45 times sample rate. Range: 20–20000 Hz. Default: 1200 Hz. Logarithmic scale. Units: Hz.
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.
Oscillator
MIDI1 lane
Audio1ch
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
Audio1ch
Audio1ch
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
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.
Duration of the held part in repeating ADSR/AR cycles. Range: 0–10000 ms. Default: 100 ms. Linear scale. Units: ms.
ms
Gate
Audio2ch
Key1ch
Audio2ch
The gate is open while the detector level is above this. Range: -80–0 dBFS. Default: -40 dBFS. Linear scale. Units: dBFS.
dBFS
Attenuation when fully closed; 0 dB leaves the audio untouched. Range: -80–0 dB. Default: -80 dB. Linear scale. Units: dB.
dB
Downward expansion below threshold; 20 closes fully, a gate. Range: 1–20 :1. Default: 20 :1. Linear scale. Units: :1.
:1
How quickly the gate opens. Range: 0.01–100 ms. Default: 0.5 ms. Logarithmic scale. Units: ms.
ms
How long the gate stays open after the level falls below threshold. Range: 0–500 ms. Default: 20 ms. Linear scale. Units: ms.
ms
How quickly the gate closes after the hold. Range: 1–2000 ms. Default: 80 ms. Logarithmic scale. Units: ms.
ms
Delays the audio so the gate opens before an onset; adds latency equal to its largest admitted value. Range: 0–10 ms. Default: 0 ms. Linear scale. Units: ms.
ms
High-pass only in the detector (on the key when it is connected); zero bypasses it. Range: 0–2000 Hz. Default: 0 Hz. Linear scale. Units: Hz.
Hz
Outputs the filtered detector signal instead of the gated audio. Range: 0–1. Default: 0. Linear scale. Units: unitless.
Blends independent detectors with the strongest detector across the bundle. Range: 0–1. Default: 1. Linear scale. Units: unitless.
Mixer2 ch
Audio2ch
Gate.in2ch
Gate
dB
Position on a two-lane mix: −1 left, 0 centre, 1 right. Constant-power for a one-lane channel, balance for a two-lane one; ignored on other widths. Range: -1–1. Default: 0. Linear scale. Units: unitless. The ring fills from zero for this signed linear range. Manual editing is unavailable while this host owns the control.
Read only
Beat.in1ch
Envelope
dB
Position on a two-lane mix: −1 left, 0 centre, 1 right. Constant-power for a one-lane channel, balance for a two-lane one; ignored on other widths. Range: -1–1. Default: 0. Linear scale. Units: unitless. The ring fills from zero for this signed linear range. Manual editing is unavailable while this host owns the control.
Read only
Mix output level in decibels, after every channel. −60 dB is off; 0 dB leaves the sum unchanged. Range: -60–12 dB. Default: 0 dB. Linear scale. Units: dB.
dB
Audio output
Audio2ch
Note
Note
Patch: Oscillator “pad” audio output connected to Filter audio input. Filter audio output connected to Gate audio input. Oscillator “kick” audio output connected to Envelope audio input. Envelope audio output connected to Gate key input. Gate audio output connected to Mixer gate.in input. Envelope audio output connected to Mixer beat.in input. Mixer audio output connected to Patch outputs audio input.Connections as text
Oscillator “pad” audio output connected to Filter audio input
Filter audio output connected to Gate audio input
Oscillator “kick” audio output connected to Envelope audio input
Envelope audio output connected to Gate key input
Gate audio output connected to Mixer gate.in input
Envelope audio output connected to Mixer beat.in input
Mixer audio output connected to Patch outputs audio input
The beat on the key opens the gate; the pad itself never does.
Below 20 the ratio expands instead of shutting, so some pad stays between hits. Lookahead opens the gate before each hit, at the cost of latency.
Frame preview (static). Controls show their default values.