Sound is just air pressure wobbling up and down. How fast it wobbles sets the pitch, how big the wobble sets the loudness — and the shape of the wobble is what makes a violin and a flute playing the same note sound completely different. Play with it below.
A pure tone is a sine wave. Slide the frequency to change the pitch (more cycles = higher note) and the amplitude to change the volume (taller wave = louder).
Add harmonics (2×, 3×, 4×… the base frequency) and watch them sum into a richer waveform. Real instruments differ because they emphasize different harmonics — that's timbre. Try the presets: a square wave is odd harmonics (∝ 1/n), a sawtooth is all of them.