By Jorgen Austvik on Jan 13, 2010
As you have seen, I have been cycling a lot lately. One technique to train leg strength is to pedal slow and heavy, or to run intervals where you alternate between slow and heavy and fast and light load.
For these exercises, I made my own soundtrack where the songs have the perfect speed (BPM - beats per minute) for my cycling. I created a script for extracting this information for my music collection, and wanted to post it here in case anybody else has need for something similar.
If you want to index your own collection, download find_bpm.pl. Perl Artistic License.
See dependencies in the top of the file for lots of dependencies.
Usage: "perl find_bpm.pl /var/music. It will store statistics about the music in a stats.csv file: name of song, tempo (BPM) and length of song.
"/var/music/Clash, The/London Calling/17-I'm Not Down.ogg",68.8,186.07 "/var/music/Turbonegro/Scandinavian Leather/10-I Want Everything.ogg",131.6,171.53 "/var/music/Sex Pistols/Never Mind the Bollocks Here's the Sex Pistols/11-New York.ogg",68.5,183.76
Now it is just to open that document in OpenOffice, sort on BPM and find a song you want to suffer to.
How my soundtrack ended up?
- The Verve: The Drugs don't work (151 BPM - warmup)
- The Verve: Bitter Sweet Symphony (174 BPM - slow'ish, pedal at half the tempo)
- Placebo: Every You and Every Me (slow, 66BPM - fast, pedal at twice the tempo)
- AC/DC: Back in Black (slow 46 BPM - slow)
- Neil Young: Rockin' in the Free World (139 BPM - fast)
- Led Zeppelin: Stairway to Heaven (48.5 BPM - slow)
- Metallica: 53'rd and 3'rd (65.2 BPM - fast, pedal at twice the tempo)
- The Dandy Warhols: We Used to be Friends (52.7 BMP - slow)
- Foo Fighters: Everlong (79 BPM - cooldown)