# 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 (τ) and the period (T)

A pulse wave or pulse train is a type 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 used in synthesizer programming, and is a typical waveform available on many synthesizers. The exact shape of the wave is determined by the duty cycle or pulse width of the oscillator output. In many synthesizers, the duty cycle can be modulated (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.

## Frequency-domain representation

The Fourier series expansion for a rectangular pulse wave with period $T$ , amplitude $A$ and pulse length $\tau$ is

$x(t)=A{\frac {\tau }{T}}+{\frac {2A}{\pi }}\sum _{n=1}^{\infty }\left({\frac {1}{n}}\sin \left(\pi n{\frac {\tau }{T}}\right)\cos \left(2\pi nft\right)\right)$ where $f={\frac {1}{T}}$ .

Equivalently, if duty cycle $d={\frac {\tau }{T}}$ is used, and $\omega =2\pi f$ :

$x(t)=Ad+{\frac {2A}{\pi }}\sum _{n=1}^{\infty }\left({\frac {1}{n}}\sin \left(\pi nd\right)\cos \left(n\omega t\right)\right)$ Note that, for symmetry, the starting time ($t=0$ ) in this expansion is halfway through the first pulse.

Alternatively, $x(t)$ can be written using the Sinc function, using the definition $\operatorname {sinc} x={\frac {\sin \pi x}{\pi x}}$ , as

$x(t)=A{\frac {\tau }{T}}\left(1+2\sum _{n=1}^{\infty }\left(\operatorname {sinc} \left(n{\frac {\tau }{T}}\right)\cos \left(2\pi nft\right)\right)\right)$ or with $d={\frac {\tau }{T}}$ as
$x(t)=Ad\left(1+2\sum _{n=1}^{\infty }\left(\operatorname {sinc} \left(nd\right)\cos \left(2\pi nft\right)\right)\right)$ ## Generation

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. A single ramp wave (sawtooth or triangle) applied to an input of a comparator produces a pulse wave that is not bandlimited. A voltage applied to the other input of the comparator determines the pulse width.

## Applications

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".

In digital electronics, a digital signal is a pulse train (a pulse amplitude modulated signal), a sequence of fixed-width square wave electrical pulses or light pulses, each occupying one of two discrete levels of amplitude. These electronic pulse trains are typically generated by metal–oxide–semiconductor field-effect transistor (MOSFET) devices due to their rapid on–off electronic switching behavior, in contrast to BJT transistors which slowly generate signals more closely resembling sine waves.