What is triangle wave in music?

What is triangle wave?

Synthesis & Sound Design

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.

What does triangle wave mean?

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.

Fourier Series of a Symmetric Triangle Wave

x(t)=8Aπ2∑k=0∞(−1)k(2k+1)2sin⁡ ⁣(2π(2k+1)f0t)x(t)=\frac{8A}{\pi^2}\sum_{k=0}^{\infty}\frac{(-1)^k}{(2k+1)^2}\sin\!\left(2\pi(2k+1)f_0t\right)

This infinite Fourier series generates an ideal, symmetric, zero-mean triangle wave with extrema +A+A and −A-A, where A>0A>0 is amplitude, f0>0f_0>0 is the fundamental frequency in hertz and tt is time in seconds. Its chosen phase starts at zero with a positive slope. Only odd harmonics at (2k+1)f0(2k+1)f_0 occur; the kk-th term has signed amplitude (8A/π2)(−1)k/(2k+1)2(8A/\pi^2)(-1)^k/(2k+1)^2. Thus the fundamental amplitude is about 0.8106A0.8106A, the third-harmonic amplitude is 0.0901A0.0901A with opposite sign, and the fifth is 0.0324A0.0324A with the original sign. The fundamental coefficient alone is not the waveform peak: the complete sum reaches AA. 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.

Examples related to triangle wave

Common confusions and distinctions

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.

Back to the glossary