39Music

How a note is built

Every steady sound is a sum of sine waves. Make a pure tone, add harmonics to build a square wave, mix a toy flute and a toy violin, and hear two nearly equal notes beat. Press the play buttons to hear each one.

Switch it on

Every sound is a sum of sines

A sound is air moving back and forth. A scope draws it as a wavy line. The simplest wave is a sine wave, which has one pitch. Every other steady sound is a mix of sine waves, a note and then notes above it.

Four things to try on the screen. Make one pure tone and see its pitch and loudness. Add harmonics to build a square wave. Mix harmonics to make a toy flute and a toy violin. And play two notes that are nearly the same, to hear beats. Press the play buttons to hear each one. The instrument recipes are toys, and the drawings of fast waves are slowed down. Without a script each part shows one picture.

Screen one

One pure tone

The pitch of a sine wave is the number of waves a second, in hertz. A higher number is a higher note. Double the number and you go up one octave. The height of the wave is how loud it is.

Slide the frequency. The screen shows a tiny slice of time, one hundredth of a second. People hear roughly 20 to 20,000 hertz, and the top of the range gets lower with age. The standard tuning note, the A above middle C, is 440 hertz.

440 Hz is 4.4 waves in a hundredth of a second, and each wave takes 2.27 milliseconds. It is near the note A 4.

Screen two

Add the harmonics

A harmonic is a sine wave at two, three, four times the frequency of the note. Add them with the right heights and the shape of the wave changes. A square wave is the odd harmonics, with each one 1 over its number as tall as the first. A sawtooth uses all of them.

Pick a shape, or set the eight heights yourself. The screen shows the sum. The square has a hollow sound, and the sawtooth a buzzing one.

The square wave is the odd harmonics 1, 3, 5 and 7, with heights of 1, one third, one fifth and one seventh.

Screen three

Why a flute is not a violin

Two instruments playing the same note have the same pitch. They sound different because the harmonics have different heights. This mix is called timbre. The wave repeats at the same rate, but its shape is different.

Pick a voice and play it. These recipes are toys, with eight harmonics and a fixed mix. A real instrument changes its mix from moment to moment, and the start of a note matters a lot.

Flute-like: Almost a pure sine wave, so a soft, clear sound. Every voice plays the same pitch of 220 Hz, and the shape of the wave is different.

Screen four

Two notes that nearly match

Play two notes with slightly different frequencies. Now and then the waves add up, and now and then they cancel. You hear the loudness rise and fall. The number of swells a second is the difference between the two frequencies.

Slide the second note. The fast wiggle in the picture is drawn slowly, but the slow swell is true to time. Piano tuners listen for these beats, and when they stop the strings match.

440 Hz and 445 Hz differ by 5 Hz, so the sound gets louder and softer 5 times a second. When the beats slow down and stop, the two notes match. That is how a piano tuner works. The picture shows one second, with the fast wiggle drawn slowly.

Key takeaways

  1. Pitch is the number of waves a second. Double it for one octave up. The standard A is 440 hertz.
  2. The height of a wave is how loud it is.
  3. Any steady sound is a sum of sine waves at the note and its harmonics. A square wave is the odd harmonics with heights of 1 over the number.
  4. Instruments sound different because their harmonics have different heights, which is called timbre.
  5. Two close notes make beats. The swells a second equal the difference in frequency.

Sources

Most of these sites could not be opened while this page was written, so the facts were checked through search results that quote them. Pitch as frequency in hertz and loudness as the height of the wave, the octave as a doubling, the tuning note A of 440 hertz, the hearing range of about 20 to 20,000 hertz, a square wave as odd harmonics at 1 over n, a sawtooth as all harmonics at 1 over n, a triangle as odd harmonics at 1 over n squared, and the beat frequency as the difference of two frequencies each appeared in at least two places. The recipes for the flute, clarinet, violin and organ sounds are made up for the toy, from the idea that instruments differ in how loud their harmonics are, and real instruments are more complicated. The slow drawing of the fast waves is marked on the page. Nothing here is advice about hearing or health.