what a sound is made of

waves, harmonics and the spectrum: the three words every other lesson uses.

every sound you will shape, from a deep sub bass to a bright hi-hat, is air moving back and forth. this first part of the series takes that movement apart into three ideas: the wave, the harmonics inside it, and the spectrum that maps them.

by the end you will be able to read the picture of a wave, explain why a saw sounds brighter than a sine on the same note, and open the spectrum analyser in your own DAW and know what it is showing you. you need no music theory, and no plugins beyond the ones your DAW already has.

sound is air being pushed and pulled

start with something that vibrates: a guitar string, a drum skin, the cone of a speaker. as it pushes forward it squeezes the air in front of it, and as it pulls back it leaves that air a little spread out. the squeezed patches are called compressions and the spread-out ones rarefactions.

Figure: a row of air molecules as a sound wave passes: bunched together where the pressure is high, spread apart where it is low.

the pattern does not stay where it started. each layer of air nudges the next one, so the squeezing and spreading travels outward, at about 344 metres a second in air at 20 °C. that is fast enough to cross a 10 metre room in about three hundredths of a second.

the air itself does not travel across the room. each molecule only rocks back and forth around its own place, and the pattern is what moves on, the way a wave runs around a stadium while everyone stays in their seat.

when the pattern reaches you, your ears pick up those changes in pressure. they are tiny: a sound you can only just hear changes the air pressure by far less than a millionth of its normal value.

one cycle: frequency and amplitude

now watch one spot in the air and draw its pressure over time. the result is a waveform. the line through the middle is normal air pressure; above it the air is squeezed, below it the air is spread out.

a smooth, even back and forth gives the shape below, the sine wave. a tuning fork comes close to it. the pressure rises from normal to fully squeezed, falls back through normal to fully spread, and returns to where it began. that round trip is one cycle.

Figure: one cycle of a sine wave: away from normal pressure, back through it, out the other way, and home again.

the number of cycles in one second is the frequency, counted in hertz (Hz). 110 Hz means 110 cycles every second, and 1,000 Hz is written 1 kHz. an ideal human ear covers roughly 20 Hz to 20 kHz, and in practice the top often stops short.

you hear frequency as pitch: more cycles a second, higher note. pitch works in ratios. doubling the frequency raises a note by one octave, so 110 Hz to 220 Hz is the same musical step as 220 Hz to 440 Hz. 440 Hz is the A that instruments are often tuned to.

Audio example, the same sine, one octave apart: listen for two sine waves, 110 Hz and then 220 Hz. listen for the same note sitting higher the second time: twice the frequency, one octave up.

the other measure is amplitude: how far the pressure swings above and below normal. a bigger swing carries more energy and sounds louder. loudness is a perception, though, and your ears are far less sensitive to deep bass than to the middle of the range. a 20 Hz tone needs about 100 decibels (dB, the usual scale for sound level) to seem as loud as a 1 kHz tone at 40 dB.

why every clip here is the same loudness

every audio example in this series is set to the same average level, so when you compare two clips you compare their tone, not their volume. listen on headphones or on speakers that can play low notes: the first clip starts at 110 Hz.

harmonics: the notes inside a note

pluck a string and it does not only swing as one whole: it also vibrates in halves, thirds, quarters and smaller pieces, all at the same time. each shorter piece vibrates faster, at a whole-number multiple of the whole string's frequency.

the frequency of the whole is the fundamental. the others are its harmonics: two times the fundamental, three times, four times, and on up. a note at 110 Hz carries harmonics at 220, 330 and 440 Hz and beyond, each at its own level.

Figure: harmonic 3 against its fundamental: three full cycles in the time the fundamental takes for one, because its frequency is three times as high.

in musical terms, harmonic 2 sits one octave above the fundamental, harmonic 3 a fifth above that, and harmonic 4 two octaves up. they are not separate notes. together with the fundamental they make up one note, and the whole bundle still repeats at the fundamental's rate.

Audio example, a fundamental and two of its harmonics, one at a time: listen for three sine waves: 220 Hz, then 440 Hz (harmonic 2), then 660 Hz (harmonic 3). on its own each is a plain tone. listen for the second sitting an octave above the first, and the third a fifth above that.

harmonics, overtones and partials

you will also see the harmonics above the fundamental called overtones, and books number them differently: harmonic 2 is often called the first overtone. this series counts harmonics, with the fundamental as harmonic 1. a partial is any single frequency in a sound, whether or not it is a whole-number multiple.

not every sound lines up this neatly. a bell's partials sit well away from whole-number multiples, and the partials of untuned percussion, such as many drums and cymbals, do not line up either. those sounds are called inharmonic.

adding harmonics changes the shape and the tone

the mathematician Jean-Baptiste Joseph Fourier showed that any wave that repeats can be built from sine waves at its fundamental and harmonics, each at the right level. the shape you see on screen and the list of harmonics are two ways of describing the same wave.

the saw wave (short for sawtooth) shows this clearly. it contains every harmonic, and each one is quieter than the last in a simple pattern: harmonic 2 at half the level of the fundamental, harmonic 3 at a third, harmonic n at 1/n.

Figure: a saw built from its harmonics: 1, then 2, then 4, then 16. with each step the smooth sine leans further toward a straight ramp with a sudden drop.

play those steps and two things happen. the note stays the same, because every added harmonic fits a whole number of cycles into one cycle of the fundamental, so the wave keeps repeating at the same rate. what changes is the tone: as more upper harmonics arrive, the sound turns brighter.

Audio example, a saw, one step at a time: listen for five steps at 220 Hz: the fundamental alone, then 2, 4 and 16 harmonics, then the full saw with every harmonic below 20 kHz. listen for the pitch holding still while the tone gets brighter at each step.

that quality, the difference between two sounds at the same pitch and loudness, is called timbre, or tone colour. the balance of harmonics is a large part of it. it is not all of it: how the harmonics change in the first moments of a note matters too, and a piano note with its attack cut away can stop sounding like a piano.

starting from a wave full of harmonics and taking some away is called subtractive synthesis. it is where the filter in part 3 comes in.

the spectrum: a map of what is inside

a waveform shows pressure against time. a spectrum shows the same sound another way: frequency runs across, level runs up, and each harmonic stands as a bar or a peak at its own frequency.

Figure: the saw's first 16 harmonics: harmonic number across, level up. every harmonic is there, each one shorter than the one before.

read it from left to right and you have the sound's recipe. a sine is a single bar. a saw is a full row that leans down to the right.

the analyser in your DAW measures this with the fast Fourier transform (FFT), a quick way to find the frequencies in a short slice of sound. the analysers named in the steps below can give every octave the same width (Ableton Live calls this logarithmic), so the harmonics crowd together toward the right: a 110 Hz note has only its fundamental between 110 and 220 Hz, and eight harmonics between 880 and 1,760 Hz.

now a sound with no cycle at all. noise is pressure changing at random. its line never repeats, so it has no fundamental, no row of harmonics and no pitch you could hum. on a spectrum its energy spreads across a wide band instead of standing in separate lines. white noise spreads it evenly across every frequency, on average.

Figure: noise: the line never repeats, so there is no cycle to count and no single pitch.

real sounds usually mix the two. a flute note shows a clear row of harmonics with a weaker haze of breath noise between them. when you look at a sound on an analyser, those are the two things to look for: lines that mark a pitch, and spread-out energy that marks noise.

Audio example, sine, saw and noise: listen for a 220 Hz sine, a 220 Hz saw, then white noise. listen for the first two sharing a note you could hum, and the third having none.

Try it: see the harmonics in your own DAW

  1. load any synth on an instrument track; the one that comes with your DAW is fine. if it has a filter, turn the knob called cutoff all the way up, and switch off any drive, chorus or reverb, so you hear the oscillator (the part that makes the wave) on its own.
  2. add your DAW's spectrum analyser to the same track, after the synth. in Ableton Live it is the Spectrum device; in Logic Pro, open a Channel EQ and turn on its Analyzer. other DAWs have their own, so search the manual for spectrum or analyser.
  3. set the oscillator to sine and hold one note low on the keyboard. the analyser shows one peak. read its frequency: that is the fundamental. small extra peaks mean the synth's sine is not perfectly pure or something is still adding harmonics; check the drive and effects again.
  4. switch the oscillator to saw and hold the same note. a row of peaks appears: the first where the sine's peak was, then at twice that frequency, three times, and on up, each one a little lower.
  5. play the same note an octave higher. the whole row moves to the right together, and the first peak now sits at twice the frequency it did before.
  6. if your synth has a knob that morphs the wave (it may be called shape, position or wave), hold a note and turn it slowly. watch the peaks rise and fall while the note you hear stays put.
  7. if the synth has a noise source, switch to it. the separate peaks melt into one broad band across the display.

you now have the three words the rest of this series is built on. a wave is a cycle of pressure, its harmonics are whole-number multiples of the fundamental, and the spectrum is the map of which harmonics are there and how strong. a synth's oscillator starts from a handful of standard waves, and each has its own recipe of harmonics. next week, in part 2, we put the four basic waveforms side by side: sine, triangle, saw and square, heard and seen, with each one's recipe read off the spectrum.

Next: part 2, the four basic waveforms. sine, triangle, saw and square, heard and seen side by side.

Sources

All parts of the series

SWARM.AUDIO.DSP · Svom.Audio.Dsp LLC · info@swarmaudiodsp.com