# Pulse wave

(Redirected from Pulse train) The shape of the pulse wave is defined by its duty cycle D, which is the ratio between the pulse duration ($\tau$ ) and the period (T)

A pulse wave or pulse train is a kind of non-sinusoidal waveform that includes square waves (duty cycle of 50%) and similarly periodic but asymmetrical waves (duty cycles other than 50%). It is a term common to synthesizer programming, and is a typical waveform available on many synthesizers. The exact shape of the wave is determined by the duty cycle of the oscillator. In many synthesizers, the duty cycle can be modulated (sometimes called pulse-width modulation) for a more dynamic timbre. The pulse wave is also known as the rectangular wave, the periodic version of the rectangular function.

The average level of a rectangular wave is also given by the duty cycle, therefore by varying the on and off periods and then averaging these said periods, it is possible to represent any value between the two limiting levels. This is the basis of pulse width modulation.

The Fourier series expansion for a rectangular pulse wave with period T and pulse time τ is

$f(t)={\frac {\tau }{T}}+\sum _{n=1}^{\infty }{\frac {2}{n\pi }}\sin \left({\frac {\pi n\tau }{T}}\right)\cos \left({\frac {2\pi n}{T}}t\right)$ Note that, for symmetry, the starting time (t = 0) in this expansion is halfway through the first pulse. The phase can be offset to match the accompanying graph by replacing t with t - τ/2.

A pulse wave can be created by subtracting a sawtooth wave from a phase-shifted version of itself. If the sawtooth waves are bandlimited, the resulting pulse wave is bandlimited, too. Another way to create one is with a single ramp wave (sawtooth or triangle) and a comparator, with the ramp wave on one input, and a variable DC[clarification needed] threshold on the other. The result will be a precisely controlled pulse width, but it will not be bandlimited.

The harmonic spectrum of a pulse wave is determined by the duty cycle. Acoustically, the rectangular wave has been described variously as having a narrow/thin, nasal/buzzy/biting, clear, resonant, rich, round and bright sound. Pulse waves are used in many Steve Winwood songs, such as "While You See a Chance".