home/ modules/ oscillators-and-waveforms

Oscillators: raw waveforms, phase, sync, and unison

  • learner can select and shape raw oscillator waveforms (saw, square/pulse, noise) for a target harmonic character
  • learner can apply oscillator techniques — pulse-width modulation, hard sync, start-phase/retrigger, sub-oscillators, unison detune — to thicken and animate a voice
  • learner can build simple chords and layered timbres within a single multi-oscillator patch

In a soft synth, design four contrasting raw oscillator sources — a fat unison saw widened into a chord via stack mode or semitone-interval transposition, a PWM-animated pulse, a hard-synced lead, and a tuned atmospheric noise layer whose color (white/pink/brown, looped for tunability) you choose by its spectrum — verifying each source's spectrum before adding any filter.

Everything downstream in subtractive synthesis — filters, envelopes, effects — can only sculpt what the oscillators supply. This module builds the whole task of choosing and animating raw sources on purpose: in a live-coding or soft-synth rig (Surge XT, Serum, Vital), you rarely have time to fix a thin source later, so a trance supersaw, a warm PWM pad, or an aggressive synced lead must be right at the oscillator stage. The capstone asks for exactly that: four contrasting sources — a chord-stacked unison saw, a PWM pulse, a synced lead, and a tuned noise layer — each verified on a spectrum analyzer before any filter touches them.

The arc starts supported. First exercises revisit a single pulse wave, hearing how duty cycle sets harmonic content, then adding an LFO — the “sweeping pulse width with an LFO” move — to turn one static oscillator into a chorused, living pad. From there the learner stacks: detuned unison copies for width, a sub oscillator an octave down for weight (guided by the “sub oscillator adds low-end weight” procedure), and stack mode or semitone transposition to fold a fifth or a full chord into one patch — the chord requirement of the saw leg. The “supersaw lead” recipe serves as a JIT how-to for the fat-saw leg of the capstone, while hard sync’s phase-reset behavior explains the screaming lead leg. The noise leg draws on the noise-color cluster — white’s flat spectrum versus pink and brown rolloffs, and looped noise as the trick that makes a noise layer tunable. Phase atoms — start phase, retrig vs. random, and cancellation when layering — are the debugging lens when a bass mysteriously thins out or attacks click.

Required atoms gate the capstone directly: without pulse-width harmonics, sync, unison, stack/interval stacking, phase, and noise-color knowledge, the four sources cannot be designed or verified. Supporting atoms enrich rather than gate — VCO voltage control and 1V/octave connect the ideas to analog and modular hardware, band-limited oscillators explain why digital saws stay clean, and the Surge XT oscillator atoms map the concepts onto one concrete free instrument. Drill unison detune, PWM setup, and sub layering until they are reflexive; they recur in nearly every patch you will build after this.

Runnable examples

Generated from the context/ instrument corpus by concept (redistributable idioms only). Do not edit — regenerate with gen-module-examples.mjs.

detune-thickening

saw [110, 110.2] >> audio

punctual-0009 · CC0-1.0

d1 $ note "c2" # sound "supersaw" # detune 0.3

tidal-0039 · CC0

bitcrush

s("bd*4").crush(4)

strudel-0022 · CC0

d1 $ sound "bd*4" # crush 4

tidal-0021 · CC0

chord-extension

[60,63,67,70] @=> int ch[]; SawOsc s => ADSR e => dac; e.set(2::ms,120::ms,0,2::ms);
for(0=>int i;i<ch.size();i++){ Std.mtof(ch[i]) => s.freq; e.keyOn(); 150::ms => now; }

chuck-0035 · MIT

mono-bass

mono (saw [110,220,330]) >> audio

punctual-0013 · CC0-1.0

reese-bass

use_synth :dsaw; play :e1, detune: 0.3, cutoff: 70, release: 0.4

sonicpi-0039 · CC0

Atoms in this module

Required — these gate the capstone

A pulse wave's duty cycle sets its harmonic content: 50% is a pure square of odd harmonics, and moving away introduces even harmonics and thins the timbre
Concept L2 First instrument B
Sweeping pulse width with an LFO animates a single oscillator into a thick, chorused timbre
Concept L2 First instrument BE
Hard sync resets a slave oscillator's phase every master cycle, locking its pitch and generating bright harmonics
Concept L2 First instrument BE
Oscillator sync locks harmonic partials to a fixed relative phase, but on non-harmonic partials it injects extra harmonics
Concept L2 First instrument BE
Oscillator start phase controls whether a note begins at a zero crossing or at a waveform peak, affecting click harshness
Concept L2 First instrument B
Phase random produces analog-feel variability per note; phase retrig produces a phase-locked, punchy attack
Concept L2 First instrument B
Two layered oscillators with opposed phase cancel in the low end, producing a weak bass
Principle L2 First instrument B
Unison stacks detuned copies of an oscillator to create a thick, wide, chorus-like sound
Concept L2 First instrument B
Unison stack mode transposes outer voices to musical intervals rather than just detuning them in pitch
Concept L2 First instrument B
Using an odd number of unison voices preserves mono compatibility by keeping one voice at dead center
Principle L2 First instrument B
A sub oscillator one or two octaves below the main oscillator adds low-end weight without audibly changing the main timbre
Procedure L2 First instrument B
A supersaw lead is built from two detuned saw-wave oscillators with many voices and a subtle LFO pitch modulation
Procedure L2 First instrument B
Transposing oscillators by musical intervals (fifths, thirds, sevenths) builds chords within a single patch
Procedure L2 First instrument B
White, pink, and brown noise oscillators add different spectral textures for atmospheric layering or percussion
Concept L2 First instrument B
Noise color describes the spectral distribution of random audio — white is flat, pink is 3dB/octave rolloff
Concept L1 Foundations BE
White, pink, and brown noise differ in how power is distributed across the frequency spectrum
Fact L1 Foundations B
White noise contains all audible frequencies at equal amplitude, making it an ideal filter source
Concept L1 Foundations B
Looped noise is a short random segment played on repeat, making it tunable unlike true white noise
Concept L2 First instrument B

Supporting — enrichment, not gating

A voltage-controlled oscillator's frequency is set by an applied control voltage, not just a manual knob
Concept L2 First instrument BE
An analog sawtooth VCO controls pitch by charge current, using 1V/octave exponential scaling
Concept L2 First instrument BE
Voltage controls oscillator pitch: higher voltage produces higher pitch
Fact L1 Foundations BE
A synth maps a note number to frequency and keystroke velocity to amplitude before any sound is generated
Concept L1 Foundations B
Pink noise distributes equal energy per octave, rolling off 3 dB per octave versus white noise
Concept L2 First instrument BD
Enabling pitch tracking on a noise oscillator makes it follow the played MIDI note for melodic noise effects
Concept L3 Craft B
Two oscillators at nearly equal frequencies produce audible beats whose rate equals the frequency difference
Concept L2 First instrument BA
A synth voice's character is set by how its oscillator generates sound — the synthesis method
Concept L1 Foundations B
Band-limited oscillators generate only the harmonics that stay below Nyquist to avoid aliasing
Concept L2 First instrument B
Surge XT's Classic oscillator blends pulse, sawtooth, and dual-saw waveforms with sub-oscillator and hard sync
Concept L2 First instrument B
Surge XT's Modern oscillator blends aliasing-suppressed saw, pulse, and triangle via DPW algorithm
Concept L3 Craft B
Surge XT's Alias oscillator deliberately generates aliasing artifacts as a creative digital noise source
Concept L3 Craft B
Surge XT's Twist oscillator ports the Mutable Instruments Plaits macro oscillator with 16 selectable synthesis models
Concept L3 Craft B
Setting a synth to monophonic mode is required for portamento/glide between note pitches
Concept L1 Foundations B