Skip to content

Module guides / Utility

Pulse-width modulator

Turn a moving waveform into a pulse. Adjusting how much of each cycle stays high changes the sound’s hollow or reedy quality.

Try the patch#

PWMOpen in rack
The PWM patch with the PWM panel and its cables.
  1. Start the patch. The first scope shows the oscillator’s triangle and a slower LFO. PWM uses the triangle as its source and the LFO to change pulse width. The second scope shows the pulse you hear.
  2. Turn PWM down to stop the sweep and move PW by hand. Watch the high portion of each cycle get wider or narrower, then restore the LFO depth.

In a composition#

For a string-like lead, use a slow, shallow width sweep. Keep the width away from the extremes when you want the pulse to remain audible throughout the cycle.

Panel reference#

Controls#

PanelWhat it does
PW (pw)Sets the comparison threshold and therefore the fraction of each waveform cycle that is high.
PWM (pwmAmt)Sets how strongly the PWM CV input moves pulse width.

Inputs#

JackSignalWhat it does
In (in)AudioSupplies the changing waveform to convert to a pulse.
PWM (pwmCV)Control voltage · ±5 VMoves pulse width under external control.

Outputs#

JackSignalWhat it does
Out (out)AudioCarries the resulting pulse wave.
Inv (inv)AudioCarries the opposite polarity of the pulse output.

Design background#

Inspired by the Doepfer A-168-1, this module creates pulse width by comparing a changing input against an adjustable threshold. The source can also be a slow control signal. Doepfer A-168-1 pulse-width modulator

Research and implementation notes

View Markdown on GitHub