Look up the musical key and BPM of any song from the command line.
$ keybpm radiohead creep
Radiohead - Creep | Key: G major | BPM: 92
Radiohead - Creep - Acoustic | Key: G major | BPM: 166
Kelly Clarkson - Creep - Live | Key: G major | BPM: 94
...
Requires Python 3. No dependencies.
curl -o ~/.local/bin/keybpm https://raw.githubusercontent.com/yourusername/keybpm/main/keybpm
chmod +x ~/.local/bin/keybpmOr clone and symlink:
git clone https://github.com/epsilver/keybpm.git
ln -s "$PWD/keybpm/keybpm" ~/.local/bin/keybpmkeybpm <query> # search by artist, song, or both
keybpm -1 <query> # show only the top result
keybpm --json <query> # output as JSON
keybpm -1 --json <query> # top result as JSON (useful for scripting)
$ keybpm daft punk get lucky -1
Daft Punk - Get Lucky | Key: F# minor | BPM: 116
$ keybpm tame impala -1 --json
{
"artist": "Tame Impala",
"title": "The Less I Know the Better",
"key": "C# minor",
"bpm": 117
}Queries the Tunebat search API and displays key/BPM data. No API key needed.
MIT