Oscillator as the Patch draws it, at default values: inlets on the left, outlets on the right.
A full-featured sound source with eight waveforms, a morph control, detune and phase. It has no audio input; an optional MIDI input plays it from notes.
The oscillator generates a tone at Frequency, shaped by Type. The waveforms are Morph, Sine, Triangle, Saw, Pulse, Double saw, Organ and Harmonic bell. Morph blends continuously between sine, triangle, saw and pulse, evaluating only the two neighboring waves. Saw and pulse edges are band-limited to reduce aliasing. Detune offsets the pitch in cents, Phase sets the starting position of the cycle, and a rising Gate edge restarts the wave from that position.
With a cable into its midi input, the oscillator plays the newest held note instead of Frequency: the note's pitch comes from the Toy's tuning, Detune still offsets it, pitch bend moves it by up to Bend range semitones, and Glide slides between notes. Releasing the newest note falls back to the newest still-held one; after the last release the pitch stays where it was, so a downstream envelope can fade it out. Before the first note, Frequency sets the pitch. The MIDI input does not gate the sound: pair it with an Envelope whose Gate comes from MIDI to control. Inside a polyphonic group each voice's oscillator sees only that voice's note.
Use it as the main source of a synth patch, as a test signal, or for several detuned voices. Pair it with an Envelope for notes and a Filter to shape the tone. To play chords with your own oscillator, filter and envelope, put them in a group and give it voices.
How far a full pitch bend on the midi input moves the note, 0 to 48 semitones each way. 2 is the usual keyboard range; set it to the MPE bend of a polyphonic group (48 by default) when you play it from an MPE controller.
The time constant, in milliseconds, of the slide from one MIDI note's pitch to the next. 0 jumps straight to each note; the first note always starts at its own 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.
1. A pure tone you can tune
beginner Teaches: frequency, amplitude
A sine oscillator with pitch and level controls.
Oscillator
MIDI1 lane
Audio2ch
Fundamental pitch, capped below Nyquist; detune uses cents. Range: 40–2000 Hz. Default: 220 Hz. Logarithmic scale. Units: Hz.
Hz
Output gain. Range: 0–0.3 ×. Default: 0.12 ×. Linear scale. Units: linear gain.
×
Continuous sine/triangle/saw/pulse morph; only its two neighboring waveforms are evaluated. Range: 0–3. Default: 0. Linear scale. Units: unitless. Marks: 0 Sine, 1 Triangle, 2 Saw, 3 Pulse.
Sine
Pulse duty cycle with a frequency-dependent safe edge width. Range: 0.05–0.95. Default: 0.5. Linear scale. Units: unitless.
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
Audio output
Audio2ch
Note
Note
Patch: Oscillator audio output connected to Patch outputs audio input.Connections as text
Oscillator audio output connected to Patch outputs audio input
Frequency is logarithmic: equal turns move by equal musical intervals.
The amplitude range is small on purpose. Keep your monitor volume low.
Frame preview (static). Controls show their default values.
Pick any waveform and play with its pitch and level.
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.15 ×. Linear scale. Units: linear gain.
×
Selects the implemented algorithm. Choices are discrete and are not LFO targets. Range: 0–7. Default: 1. 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
Audio output
Audio2ch
Note
Patch: Oscillator audio output connected to Patch outputs audio input.Connections as text
Oscillator audio output connected to Patch outputs audio input
Sine has one harmonic. Saw and pulse have many, so they sound brighter.
Frame preview (static). Controls show their default values.
Two nearby sine tones summed together to expose beating.
Oscillator
MIDI1 lane
Audio2ch
Fundamental pitch, capped below Nyquist; detune uses cents. Range: 40–2000 Hz. Default: 220 Hz. Logarithmic scale. Units: Hz.
Hz
Output gain. Range: 0–0.5 ×. Default: 0.12 ×. Linear scale. Units: linear gain.
×
Continuous sine/triangle/saw/pulse morph; only its two neighboring waveforms are evaluated. Range: 0–3. Default: 0. Linear scale. Units: unitless. Marks: 0 Sine, 1 Triangle, 2 Saw, 3 Pulse.
Sine
Pulse duty cycle with a frequency-dependent safe edge width. Range: 0.05–0.95. Default: 0.5. Linear scale. Units: unitless.
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
Oscillator
MIDI1 lane
Audio2ch
Fundamental pitch, capped below Nyquist; detune uses cents. Range: 40–2000 Hz. Default: 223 Hz. Logarithmic scale. Units: Hz.
Hz
Output gain. Range: 0–0.5 ×. Default: 0.12 ×. Linear scale. Units: linear gain.
×
Continuous sine/triangle/saw/pulse morph; only its two neighboring waveforms are evaluated. Range: 0–3. Default: 0. Linear scale. Units: unitless. Marks: 0 Sine, 1 Triangle, 2 Saw, 3 Pulse.
Sine
Pulse duty cycle with a frequency-dependent safe edge width. Range: 0.05–0.95. Default: 0.5. Linear scale. Units: unitless.
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
Mixer2 ch
Audio2ch
Low.in2ch
Oscillator
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
High.in2ch
Oscillator
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 “low” audio output connected to Mixer low.in input. Oscillator “high” audio output connected to Mixer high.in input. Mixer audio output connected to Patch outputs audio input.Connections as text
Oscillator “low” audio output connected to Mixer low.in input
Oscillator “high” audio output connected to Mixer high.in input
Mixer audio output connected to Patch outputs audio input
Bring Tone B close to Tone A. The slow pulsing is the two sines drifting in and out of phase.
At equal frequencies the pulsing stops.
Frame preview (static). Controls show their default values.
Continuous morphing, pulse width, detune and gate restart.
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.
×
Continuous sine/triangle/saw/pulse morph; only its two neighboring waveforms are evaluated. Range: 0–3. Default: 3. Linear scale. Units: unitless. Marks: 0 Sine, 1 Triangle, 2 Saw, 3 Pulse.
Pulse
Pulse duty cycle with a frequency-dependent safe edge width. Range: 0.05–0.95. Default: 0.3. Linear scale. Units: unitless.
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
Audio output
Audio2ch
Note
Note
Patch: Oscillator audio output connected to Patch outputs audio input.Connections as text
Oscillator audio output connected to Patch outputs audio input
Notes into the oscillator's MIDI input set its pitch; glide slides between them and bend range scales pitch bend.
Keyboard
MIDI1 lane
MIDI to control
MIDI1 lane
Control6 lanes
Note that maps to 0 on the pitch lane. Range: 0–127. Default: 36. Linear scale. Units: unitless.
Note that maps to 1 on the pitch lane. Range: 0–127. Default: 96. Linear scale. Units: unitless.
Controller number followed by the cc lane. Range: 0–127. Default: 1. Linear scale. Units: unitless.
0 listens to every channel; 1–16 listens to one. Range: 0–16. Default: 0. Linear scale. Units: unitless.
Portamento on the pitch lane between notes. Range: 0–2000 ms. Default: 0 ms. Linear scale. Units: ms.
ms
Select lanes
ControlAuto
ControlAuto
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: 120 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.
Audio output
Audio2ch
Note
Note
Patch: Select lanes control output connected to Envelope @gate input. MIDI to control control output connected to Select lanes control input. Keyboard midi output connected to MIDI to control midi input. Envelope audio output connected to Patch outputs audio input. Keyboard midi output connected to Oscillator midi input. Oscillator audio output connected to Envelope audio input.Connections as text
Select lanes control output connected to Envelope @gate input
MIDI to control control output connected to Select lanes control input
Keyboard midi output connected to MIDI to control midi input
Envelope audio output connected to Patch outputs audio input
Keyboard midi output connected to Oscillator midi input
Oscillator audio output connected to Envelope audio input
The keyboard's notes set the oscillator's pitch through its midi input. Frequency is ignored while the cable is connected.
MIDI to control turns the same notes into a gate lane; Select picks lane 2 for the envelope's Gate.
Frame preview (static). Controls show their default values.