The input range (Input min to Input max) is mapped linearly onto the output range (Output min to Output max), then bent by Curve. Curve at 0 is a straight line; negative values ease in (slow start, fast finish) and positive values ease out. Clamp holds the result inside the output range; with Extrapolate, input beyond the input range continues past the output range. All four range values run from -10000 to 10000. To invert a signal, set Output min higher than Output max. The same mapping applies to every lane of the input.
Use it between any source and destination whose ranges differ: shrink an LFO to a small depth around a value, flip a sensor, or reshape a linear ramp. Pair it with Control LFO for modulation.
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.
An LFO is remapped by input and output range knobs.
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
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.
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.
Audio output
Audio1ch
Note
Note
Patch: Oscillator audio output connected to Patch outputs audio input. Control LFO control output connected to Scale control input.Connections as text
Oscillator audio output connected to Patch outputs audio input
Control LFO control output connected to Scale control input
The LFO sweeps 0 to 1. Scale maps Input min and Input max onto Output min and Output max.
Set Output min above Output max to invert the signal.
Frame preview (static). Controls show their default values.
A curve bends a ramp, and clamp decides what happens outside the range.
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
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.
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.
Audio output
Audio1ch
Note
Note
Note
Patch: Oscillator audio output connected to Patch outputs audio input. Control LFO control output connected to Scale control input.Connections as text
Oscillator audio output connected to Patch outputs audio input
Control LFO control output connected to Scale control input
A saw LFO feeds an input range of 0.2 to 0.8, so the ends of the ramp fall outside it.
Clamp holds those ends at 0 and 1. Extrapolate lets them continue past.
Curve bends the middle of the mapping.
Frame preview (static). Controls show their default values.
Control LFO A free-running or tempo-synced low-frequency oscillator on a control lane, 0 to 1, with depth, offset, phase, skew, random shapes and a reset input.
Smooth Slow a control lane down with separate rise and fall times so jumpy sensors and buttons stop clicking.
Math Arithmetic on any signal, lane by lane: add, multiply, divide, power and more on audio or control operands. The output runs at the rate of its fastest input.