the four basic waveforms
sine, triangle, saw and square, heard and seen side by side.
in part 1 you met the wave, the harmonics inside it and the spectrum that maps them. this part puts those three words to work on four standard shapes that synth oscillators offer, Ableton Live's Operator among them: the sine, the triangle, the saw and the square.
by the end you will be able to tell the four apart on an analyser, read each one's recipe of harmonics, and say why a square sounds brighter than a triangle even though both use only odd harmonics. every clip here is set to the same average level, as in part 1, so you compare tone and not volume.
four shapes, one note
an oscillator is the part of a synth that makes the wave: it draws one cycle and repeats it, as many times a second as the note's frequency. change the shape of that cycle and the pitch stays where it is, because the wave still repeats at the same rate. what changes is which harmonics are inside, and how strong each one is.
here are the four as recipes. harmonics are counted as in part 1, with the fundamental as harmonic 1, and each level is a fraction of the fundamental's.
- sine: the fundamental and nothing else.
- triangle: odd harmonics only (1, 3, 5, 7 and on), harmonic n at 1/n²: harmonic 3 at a ninth, harmonic 5 at a twenty-fifth.
- saw: every harmonic, harmonic n at 1/n: harmonic 2 at a half, harmonic 3 at a third.
- square: odd harmonics only, harmonic n at 1/n: the saw's levels with every even harmonic missing.
Audio example, the four shapes on one note: listen for a sine, a triangle, a saw and a square, in that order, all at 220 Hz and the same average level. listen for the note holding still while the tone changes from shape to shape.
two questions read any of the four
the recipes differ in two ways only. which harmonics are there: all of them, or only the odd ones. and how fast they fade: at 1/n, or at 1/n², which falls away much faster. ask those two questions of a spectrum and you can name the shape.
the sine and the triangle: the quiet pair
the sine from part 1 is the plain one: a single harmonic, the fundamental. on an analyser it is one peak, and Ableton's manual calls Operator's sine a pure, mathematical one. every other shape adds harmonics on top of that peak.
the triangle rises in a straight line and falls in a straight line. it does carry harmonics, but only the odd ones, and they fade fast: harmonic 3 at a ninth of the fundamental, harmonic 5 at a twenty-fifth, harmonic 7 at a forty-ninth.
Figure: two cycles of a triangle: a straight climb and a straight fall, with sharp corners where they meet.
Figure: the triangle's first 16 harmonics. the even places are empty, and the odd bars shrink so fast that only the first two are easy to see.
analysers show level in decibels (dB). there, the triangle's harmonic 3 sits about 19 dB below the fundamental, harmonic 5 about 28 dB and harmonic 7 about 34 dB. that is why a triangle on an analyser can look like a sine with a few small peaks to its right.
Figure: a triangle built from its odd harmonics: the first 1, 2, 4 and 16 of them. by the second panel the shape is already close, because everything added after it is so weak.
Audio example, a sine, then a triangle: listen for a 220 Hz sine, then a 220 Hz triangle. listen for what the triangle adds to the same note: its extra harmonics are quiet, so the difference is small.
Audio example, a triangle, one harmonic at a time: listen for four steps at 220 Hz: the fundamental alone, then with harmonic 3, then with harmonics 3 and 5, then the full triangle. listen for how little changes after the second step.
the saw: every harmonic
the saw climbs in a straight ramp and drops back in one jump. some synths ramp down instead; the recipe is the same either way. part 1 built a saw from its harmonics: every whole-number harmonic, harmonic n at 1/n.
Figure: two cycles of a saw: a steady ramp up, then a sudden drop back to the start.
in decibels the saw's harmonics step down evenly: harmonic 2 about 6 dB below the fundamental, harmonic 4 about 12 dB, harmonic 8 about 18 dB. each doubling of the harmonic number costs about 6 dB, so on an analyser whose octaves all have the same width, the tops of the peaks form a straight line sloping down.
Figure: the saw's recipe: every harmonic, each a little shorter than the last. compare harmonic 3 with the triangle's: a third against a ninth.
next to the triangle, the saw keeps far more energy high up. its harmonic 5 is a fifth of the fundamental, where the triangle's is a twenty-fifth. that top end is what the filter in part 3 will carve into.
the square: a saw without its even harmonics
the square jumps between two levels and spends the same time at each. its recipe is odd harmonics only, at the saw's levels: harmonic 3 at a third, harmonic 5 at a fifth. take a saw, remove harmonics 2, 4, 6 and every other even one, and what is left is the square.
Figure: the square's first 16 harmonics: the saw's bars at every odd place, and nothing at the even ones.
Figure: a square built from its odd harmonics: the first 1, 2, 4 and 16 of them. with 16 the flat tops are close, with a small ripple left near each jump where the list of harmonics stops.
Audio example, a saw, a square, the saw again: listen for a 220 Hz saw, then a 220 Hz square, then the same saw. the square is the saw with its even harmonics taken out. listen for what goes missing in the middle and comes back at the end.
the square and the triangle both carry only odd harmonics, yet the square sounds brighter, as Jeffrey Hass of Indiana University notes. the reason is the second question: its harmonics fade at 1/n rather than 1/n², so its harmonic 5 is a fifth of the fundamental instead of a twenty-fifth. which harmonics are there and how fast they fade are two separate controls on the tone.
a clarinet's low notes share part of the square's pattern. the acoustician Joe Wolfe finds strong odd harmonics and weak even ones in that register, and calls its tone hollow. the square takes the pattern all the way, with no even harmonics at all.
Audio example, a square, one step at a time: listen for five steps at 220 Hz: the fundamental alone, then the first 2, 4 and 16 odd harmonics, then the full square. listen for the tone growing brighter at each step while the note stays put.
the square is one of a family
a square is a pulse wave that spends half of each cycle up and half down (a 50 % duty cycle, written 1:2). change that balance and different harmonics go missing: at 1:3 every third harmonic drops out, at 1:4 every fourth. Gordon Reid describes very narrow pulses, around 5 to 10 percent, as "thin and nasal". moving the width while a note plays comes back when we reach modulation.
reading the four on an analyser
put the four through one analyser and two looks tell them apart. first: are there peaks at 2, 4 and 6 times the fundamental? if not, it is a triangle or a square. second: how fast do the peaks fall? start from a single bar.
Figure: the sine's recipe: a single bar at harmonic 1. every other shape adds bars to its right.
- one peak: a sine.
- odd peaks, falling fast (harmonic 3 about 19 dB down, harmonic 5 about 28 dB): a triangle.
- every peak, falling slowly (harmonic 2 about 6 dB down, 3 about 9.5 dB, 4 about 12 dB): a saw.
- odd peaks, falling slowly (harmonic 3 about 9.5 dB down, 5 about 14 dB): a square.
real oscillators do not always land on these numbers. Ableton's manual says Operator's saw, square and triangle are rebuilt from a set number of harmonics, so they are close to the ideal recipes rather than equal to them. use the numbers as a guide and let the analyser show you what your synth does.
this is also why the shapes matter for sound design. a sine has nothing above its fundamental, so a filter can only make it quieter. a saw has every harmonic, so a filter has plenty to remove and the tone can change a great deal. starting from a rich shape and taking harmonics away is the subtractive synthesis part 1 named.
In Ableton Live: the four shapes in Operator, read on Spectrum
Works in Live 12 Suite.
- on a new MIDI track, load Operator from the browser's instruments, then drop Spectrum from the audio effects onto the same track, after Operator. Operator comes with Live Suite and Spectrum with Standard and Suite. in other editions, Drift's first oscillator has Sine, Triangle and Saw, so you can hear three of the four.
- let oscillator A sound on its own, at the note you play, with nothing removing harmonics. in Operator's shell turn the Level of oscillators B, C and D all the way down, and switch the filter off. Operator: Osc A Coarse 1, Osc B Level all the way down, Osc C Level all the way down, Osc D Level all the way down, Filter On off.
- set Spectrum so each octave takes the same width, the display scales itself, and old peaks do not linger when you change shape. Spectrum: Scale X Log, Max off, Range/Auto Auto.
- open oscillator A's display, set Wave (under Oscillator) to Sine, which the box shows as Sin, and hold the low A that Spectrum reads as 110 Hz. Spectrum shows one peak. hover over it to read its frequency and level: that is the fundamental, and the level is the one the other harmonics are measured against. the box reads wherever the pointer is, so it can land a few hertz either side of a peak. Operator: Osc A Wave Sine.
- switch Wave to Triangle (Tri in the box) and hold the same note. small peaks appear at 3, 5 and 7 times the fundamental's frequency, and nothing at 2, 4 or 6. hover on the peak at three times the frequency, 330 Hz (the box may say 327): in the ideal recipe it sits about 19 dB below the fundamental. Operator: Osc A Wave Triangle.
- switch to Saw 32 (Sw32 in the box): a saw rebuilt from 32 harmonics. now there is a peak at every multiple of the fundamental, and the tops slope down evenly. hover on the second peak, at 220 Hz: in the ideal recipe it sits about 6 dB below the first. Operator: Osc A Wave Saw 32.
- switch to Square 64 (Sq64 in the box), the square with the most harmonics in the list. the peaks at 2, 4 and 6 times the fundamental are gone, and the odd ones keep the saw's heights: the third about 9.5 dB down, the fifth about 14 dB. Operator: Osc A Wave Square 64.
- now turn a saw into a square by hand. set Wave back to Saw 32 and switch oscillator A's display from its envelope to its oscillator, where the saw's harmonics stand as bars you can draw. right-click the bars and limit editing to the even harmonics, then drag across the display to pull every even harmonic down to zero. start the drag on the second bar: even in this mode, the first click changes whichever bar is under the pointer. as soon as you draw, Wave reads User. on Spectrum the peaks at 2, 4 and 6 times the fundamental fall away, and what is left is the square's recipe. Operator: Osc A Wave Saw 32, then edited (reads User), harmonics shown 32, editing (context menu) Even, even harmonics drawn down to zero.
In other DAWs: any synth, one analyser
- any synth with a sine, a triangle, a saw and a square will do. hold one low note, put an analyser after the synth (part 1 shows how to find one), and switch between the four shapes. check the peaks against the four readings in the list above.
- if your synth has a pulse or rectangle wave with a width control instead of a square, set the width to 50 %: that is the square. turn it away from 50 % and watch which peaks drop out.
you can now read a wave's recipe with two questions: which harmonics are there, and how fast they fade. the saw and the square keep plenty of harmonics high up, and that is raw material. next week, in part 3, the filter: what cutoff and resonance do, and how a filter carves harmonics away from a saw while you watch its recipe change on the same analyser.
Next: part 3, the filter: cutoff and resonance. carving harmonics away with cutoff and resonance.
Sources
- synthesis chapter four: waveforms, Jeffrey Hass, Indiana University
- synth secrets, part 10: modulation, Gordon Reid, Sound On Sound
- synth secrets, part 1: what's in a sound?, Gordon Reid, Sound On Sound
- square and rectangle waves, Jeffrey Stolet, Electronic Music Interactive, University of Oregon
- Fourier series: square wave, Eric W. Weisstein, MathWorld, Wolfram Research
- geometric waves, R Nave, HyperPhysics, Georgia State University
- clarinet acoustics: an introduction, Joe Wolfe, UNSW Music Acoustics
- Live 12 manual: Operator, Ableton
- Live 12 manual: Drift, Ableton
- Live 12 manual: Spectrum, Ableton
- compare Live editions, Ableton