What's the Secret Code in Your Favorite Song?
Have you ever found yourself tapping your foot without even noticing while listening to your favorite pop song on the way to school? Or clapping along to the beat of a TikTok trend so fast your hands hurt, and wondering why everyone around you is clapping at the exact same time? That “sameness” you feel isn’t magic—it’s math, hiding in plain sight in every song you love. In this chapter, we’re going to become *Beat Detectives*: we’ll learn to read the secret number code in every song, and you’ll realize you’ve been using this math every time you sing along to your favorite track, even if you never noticed it before.
---
First Clue: What’s a Beat, Anyway?
Let’s start with the most basic part of any song: the beat. The beat is the steady, repeating “pulse” of a song, like the thump-thump-thump of a drum, or the tap of your foot when you’re bored in class. It’s the part of the music that makes you want to move, even if you’re trying really hard to sit still.
To figure out how fast a song’s beats are, musicians use a number called BPM, which stands for *Beats Per Minute*. That’s literally how many beats happen in one full minute of the song. Let’s try it with a song you probably know: Taylor Swift’s *Shake It Off*. If you play the first 15 seconds and tap along to the main drum beat, you’ll count about 40 taps. To get the BPM, we just multiply that number by 4 (because 15 seconds × 4 = 60 seconds, or 1 minute): $$\text{BPM} = \