What is oscillator in music?

What is oscillator?

Synthesis & Sound Design

A component that generates a repeating electrical or digital waveform. Oscillators provide the primary sound sources in many synthesizers and can produce sine, sawtooth, square and other waveforms.

What does oscillator mean?

An oscillator generates a recurring variation, represented in a synthesizer as an electrical or digital signal. Its frequency determines the repetition rate, its waveform describes the shape of a cycle, and its phase describes the position within that cycle. At audio rates, an oscillator can provide a pitched sound source; at slower rates, it can control another parameter as an LFO.

Waveforms differ in harmonic content. An ideal sine wave contains one frequency component, while ideal sawtooth and square waves contain harmonics that give them a richer sound. Real analog circuits and digital algorithms approximate or modify those ideal shapes. Filtering, mixing and modulation can then transform the oscillator into a playable instrumental sound.

Sinusoidal Oscillator

x(t)=Asin⁡(2πft+ϕ)x(t)=A\sin(2\pi ft+\phi)

For an ideal continuous-time sinusoid, A ≥ 0 is peak amplitude in the signal's units, f > 0 is constant frequency in hertz, t is time in seconds, and φ is a fixed initial phase in radians. The phase 2πft + φ is dimensionless (radians); for nonzero A the period is T = 1/f seconds and the waveform ranges from −A to +A. For A = 0.8, f = 2 Hz and φ = 0, T = 0.5 s, x(0) = 0 and x(0.125 s) = 0.8. This expression contains only a single sinusoidal frequency and does not model non-sinusoidal harmonic spectra, time-varying frequency, hard synchronization or digital sampling artifacts. A sampled version evaluates the same signal at discrete instants t = n/f_s, with sampling rate f_s > 0.

Examples related to oscillator

Common confusions and distinctions

An oscillator is a source, not necessarily a complete synthesizer voice. Pitch also depends on tuning, modulation and the rest of the signal path. Digital oscillators with sharp waveform features need appropriate band limiting or other anti-aliasing methods; drawing an ideal shape alone does not guarantee clean digital audio.

Back to the glossary