Waves, Frequencies, and Pitch

The Sine Wave: Music's Atom

The Foundation of Sound

At its core, music is the mathematical organization of air pressure variations. The sine wave is the simplest periodic sound, defined by the function: y(t) = A sin(2πft + φ).

To understand how we hear and create music, we must first understand the physics of the sine wave—the simplest building block of sound. Every note you hear is essentially a variation in air pressure over time. By adjusting the amplitude, we change the volume. By adjusting the frequency, we change the pitch. And the phase determines exactly where that wave begins its journey through space.

Interactive Wave Lab

Experiment with the wave parameters to see and hear how they change. Try to create a high-pitched, quiet sound.

Now, it's your turn. Use the sliders to manipulate the wave. Notice how increasing the frequency adds more cycles per second, while increasing the amplitude makes the wave peaks taller. See if you can find the settings for a high-pitched but soft tone. Changing the amplitude alters the wave's height. In the physical world, this corresponds to the intensity of the pressure wave. As the frequency increases, the cycles pack closer together. Physically, this means more vibrations per second hitting your eardrum.

Frequency vs. Pitch

Human hearing is logarithmic, not linear. This means we perceive musical intervals based on ratios of frequencies rather than fixed additions.

While frequency is a physical measurement, pitch is a human perception. Our ears don't hear in a straight line; they hear logarithmically. If we add 440 Hertz to a note at 440 Hertz, we get an octave. But if we add that same 440 Hertz to a high note at 4000 Hertz, we barely hear a difference. To maintain the same musical interval, we must multiply the frequency, usually by a factor of two to go up an octave.

The Semitone Calculator

Calculate the frequency of any note using the formula:
fn = f0 × 2(n/12)

Where n is the number of semitones away from A440.

In modern music, we divide the octave into twelve equal parts. To find the frequency of a specific note, we use this exponential formula. Try calculating the frequency for a note 12 semitones above A440. Since twelve divided by twelve is one, you're simply multiplying 440 by two.

Fourier Synthesis: Building Timbre

Fourier’s Theorem states that any periodic wave can be constructed by summing simple sine waves.

Pure sine waves sound clinical, like a flute or a tuning fork. But most instruments produce complex waveforms. We start with a fundamental frequency. By adding the third harmonic at one-third volume, and then the fifth, we begin to build a Square Wave. This process of stacking sines is called Fourier Synthesis.

The Oscilloscope Challenge

Examine the waveform and the harmonic spectrum. Identify the wave type based on its visual and mathematical properties.

Correct! The Sawtooth wave is known for its 'buzzy' timbre because it contains all integer harmonics, making it perfect for string-like synthesizer sounds. Look at the oscilloscope. This wave has a buzzy, bright sound and contains every single harmonic—1, 2, 3, 4, and so on. Based on what we've discussed, is this a Square wave or a Sawtooth wave? Click the correct label. Not quite. Remember, Square waves only contain odd harmonics and have a 'hollow' sound. This wave has a more complex, jagged shape.

The Silence of Phase

If two identical waves are 180° out of phase, they cancel each other out. This is known as destructive interference.

Phase is often overlooked, but it's critical. Here are two identical sine waves. If I shift the second wave by 180 degrees, the peak of one meets the trough of the other. The result is total silence. Use the slider to find the point of maximum cancellation.