What is triangle wave?
Synthesis & Sound DesignA periodic waveform that rises and falls linearly between two amplitude extremes. An ideal triangle wave contains odd harmonics whose amplitudes decrease rapidly, producing a relatively soft tone.
A periodic waveform that rises and falls linearly between two amplitude extremes. An ideal triangle wave contains odd harmonics whose amplitudes decrease rapidly, producing a relatively soft tone.
A triangle wave is a periodic signal that rises linearly to a peak and falls linearly to a trough. In its ideal symmetric, zero-mean form, the rising and falling portions occupy equal halves of the cycle. Its shape is continuous, although the slope changes abruptly at the two turning points.
The ideal symmetric triangle contains the fundamental and odd-numbered harmonics. Their amplitudes decrease with the square of harmonic number, so the third harmonic has one ninth of the fundamental’s amplitude and the fifth has one twenty-fifth. This produces a more subdued upper spectrum than a square wave, whose odd harmonics fall only in inverse proportion to harmonic number. Digital and analog oscillators approximate the ideal to different degrees.
This infinite Fourier series generates an ideal, symmetric, zero-mean triangle wave with extrema and , where is amplitude, is the fundamental frequency in hertz and is time in seconds. Its chosen phase starts at zero with a positive slope. Only odd harmonics at occur; the -th term has signed amplitude . Thus the fundamental amplitude is about , the third-harmonic amplitude is with opposite sign, and the fifth is with the original sign. The fundamental coefficient alone is not the waveform peak: the complete sum reaches . A real digital oscillator must truncate or band-limit harmonics above Nyquist to avoid aliasing, and an arbitrary phase choice yields an equivalent time-shifted waveform.
A triangle wave is not a sine wave: its corners and extra harmonics give it a different spectrum. It is also not a sawtooth wave, which has a discontinuous reset. Asymmetry, distortion or other waveform changes can introduce even harmonics, so the odd-only statement applies to the ideal symmetric form.