Skip to content

Oscillator

Tone-generating oscillator with V/oct pitch input, four waveforms, and pulse-width control on the square wave.

Category: Audio

oscillator node on canvasoscillator inspector panel

Inputs

NameTypeDescription
notecontrol1V/octave pitch CV. Sums with the `note` parameter; smoothed (~5 ms) to kill zipper noise on fast note streams.
pwcontrolPhase-symmetry modulation, 0–1. Warps all four waveforms — 0.5 gives the standard symmetric shape.
resetcontrolRising edge resets the oscillator phase to 0 sample-accurately. Lets a fast attack open click-free.

Outputs

NameTypeDescription
outaudioOscillator audio.

Parameters

NameTypeDefaultRangeUnitDescription
waveformenumsinesine, square, sawtooth, triangleOutput wave shape. Square and sawtooth are band-limited (PolyBLEP) to suppress aliasing.
notenumber0-5–5noteBase pitch (V/octave; 0 = C4). Sums with the `note` input.
detunenumber0-1200–1200centsFine tuning in cents (100 = one semitone).
pulseWidthnumber0.50.01–0.99Phase symmetry. At 0.5 each waveform has its standard symmetric shape; off-centre values warp it (square → narrower pulse, sawtooth → asymmetric ramp, etc.).