The convention is that a sawtooth wave ramps upward and then sharply drops. However, there are also sawtooth waves in which the wave ramps downward and then sharply rises. The latter type sawtooth wave is called a "reverse sawtooth wave" or "inverse sawtooth wave".
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.
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 synthesizing musical sounds, particularly bowed string instruments like violins and cellos, using subtractive synthesis.
converges to an inverse sawtooth wave. A conventional sawtooth can be constructed using
In digital synthesis, these series are only summed over k such that the highest harmonic, Nmax, is less than the Nyquist frequency (half the sampling 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(x), infinite harmonics are sampled and the resulting tone contains aliasing distortion.
An audio demonstration of a sawtooth played at 440 Hz (A4) and 880 Hz (A5) and 1760 Hz (A6) is available below. Both bandlimited (non-aliased) and aliased tones are presented.