Sawtooth wave


The sawtooth wave is a kind of non-sinusoidal waveform. It is so named based on its resemblance to the teeth of a plain-toothed saw with a zero rake angle. A single sawtooth, or an intermittently triggered sawtooth, is called a ramp waveform.
The convention is that a sawtooth wave ramps upward and then sharply drops. In a reverse sawtooth wave, the wave ramps downward and then sharply rises. It can also be considered the extreme case of an asymmetric triangle wave.
The piecewise linear function
, or equivalently
based on the floor function of time t is an example of a sawtooth wave with period 1.
A more general form, in the range −1 to 1, and with period a, is
This sawtooth function has the same phase as the sine function.
Another function in trigonometric terms with period p and amplitude a:
While a square wave is constructed from only odd harmonics, a sawtooth wave's sound is harsh and clear and its spectrum contains both even and odd harmonics of the fundamental frequency. Because it contains all the integer harmonics, it is one of the best waveforms to use for subtractive synthesis of musical sounds, particularly bowed string instruments like violins and cellos, since the slip-stick behavior of the bow drives the strings with a sawtooth-like motion.
A sawtooth can be constructed using additive synthesis. The infinite Fourier series
converges to a reverse sawtooth wave. A conventional sawtooth can be constructed using
where A is amplitude.
In digital synthesis, these series are only summed over k such that the highest harmonic, Nmax, is less than the Nyquist frequency. This summation can generally be more efficiently calculated with a fast Fourier transform. If the waveform is digitally created directly in the time domain using a non-bandlimited form, such as y = x − floor, infinite harmonics are sampled and the resulting tone contains aliasing distortion.
An audio demonstration of a sawtooth played at 440 Hz and 880 Hz and 1,760 Hz is available below. Both bandlimited and aliased tones are presented.

Applications