How did people record music before computers?

You press a button and music plays. You tap a screen and hear anything ever recorded. But before computers, before apps, before electricity — how did anyone capture a sound and play it back?
The first breakthrough came in 1877, when Thomas Edison built a strange machine: a metal cylinder wrapped in tinfoil, a needle attached to a vibrating disc, and a hand crank. He shouted "Mary had a little lamb!" into a cone. The sound waves made the disc vibrate, which made the needle wiggle, which carved a wobbly groove into the spinning foil. Then he moved the needle back to the start and cranked again — and the groove made the needle wiggle, which made the disc vibrate, which pushed sound waves back out. The tinfoil was talking.
