And a One, And a Two...


I was never much good at being a nerd. I've played Dungeons & Dragons exactly once, can't quote Star Trek scripts verbatim, and stopped reading superhero comics roundabout puberty.

But I can program computers a bit, I do read XKCD, and people often tell me I'm rude and insensitive - so that's something.

Today's nerdicule (defined as a particle of nerdery) came from a question: If I want to write a song of a particular target length, at a particular tempo, how many bars does that give me to play with - and by extension, how many verses, choruses, breaks etc. can I have, and how long can they be?

Well, the number of bars in a song is equal to the tempo in beats per minute, divided by the number of beats per minute, which is itself divided by the song length in minutes. In other words...

Bars per Song = Beats per Minute / (Beats per Bar / Minutes per Song)

There's usually four beats to the bar, so a three minute pop song at 120BPM gives...

Bars per Song = 120 / (4 / 3) = 90

But rather than work it out each time, how about a lookup table? The X axis is tempo, and Y is song length.


2m2m 30s3m3m 30s4m4m 30s5m
80405060708090100
85435364748596106
904556687990101113
954859718395107119
10050637588100113125
10553667992105118131
11055698396110124138
115587286101115129144
120607590105120135150
125637894109125141156
1356884101118135152169
1407088105123140158175
1457391109127145163181
1507594113131150169188


The irony is, it took longer to work out how to make the table than to work out the equation.

No comments:

Post a Comment