What is pulse-width modulation?
Synthesis & Sound DesignThe continuous variation of the duty cycle of a pulse waveform. Commonly abbreviated as PWM, it produces changing harmonic content and a characteristic animated synthesizer sound.
The continuous variation of the duty cycle of a pulse waveform. Commonly abbreviated as PWM, it produces changing harmonic content and a characteristic animated synthesizer sound.
Pulse-width modulation, or PWM, changes a pulse waveform’s duty cycle over time. An LFO, envelope or other control moves the transition between its high and low portions, continually changing the harmonic balance. With a slow LFO, a single oscillator can gain a moving, animated tone without requiring a pair of detuned oscillators.
Base pulse width, modulation depth and modulation rate determine the movement. Modest depth can add subtle color, while wider sweeps pass through more strongly contrasting spectra. Audio-rate modulation creates a more complex spectrum with modulation sidebands. Practical synthesizers commonly constrain the width range because a pulse approaching 0% or 100% can lose its alternating portion.
D(t) is the dimensionless duty cycle at time t in seconds; D_0 is its center value, d > 0 its peak deviation in duty-cycle units (not an absolute percentage), and f_m > 0 the sinusoidal modulation frequency in hertz. The inequality 0 < D_0 − d < D_0 + d < 1 keeps the two-level oscillator from reaching a constant 0% or 100% width. For D_0 = 0.5, d = 0.2 and f_m = 1 Hz, D(t) ranges from 0.3 to 0.7 (30%–70%), reaching 70% at t = 0.25 s and 30% at t = 0.75 s; its cycle repeats each second. This is a single ideal sinusoidal control law; other LFOs, envelopes, clipping and practical oscillator band-limiting are not represented.
PWM is used in analog, virtual analog and other synthesizers for basses, leads, pads and evolving textures.
PWM primarily varies waveform shape rather than intentionally transposing the oscillator. It is different from amplitude modulation and oscillator detuning, although perceived level and tone can change during the sweep. A static pulse-width setting is not modulation.