The Tiny Pins on a Music Box Drum
Wind up a small music box, lift the lid, and a tune begins to tinkle out. There is no tiny band inside. The music comes from a clever arrangement of metal and a spinning drum.
Inside the box is a metal comb. Its teeth are cut to different lengths. Short teeth make high notes, and long teeth make low ones. Each tooth is a thin strip of metal that vibrates when it is plucked, and a vibration is what we hear as sound.
The plucking is done by a cylinder covered with small pins. As a spring unwinds, it turns the cylinder slowly. Each pin sticks out a little, so when it passes a tooth of the comb, it flicks the tooth and a note rings out. The position of each pin along the cylinder decides which note it plays. The spacing around the cylinder decides when.
So the cylinder is really a kind of memory. The maker places every pin by hand or machine to match a song. When the cylinder turns the same way each time, it repeats the song exactly the same way.
A music box is a small example of how a machine can store instructions. Later machines, such as player pianos, used the same idea with paper rolls.