Package Details: bpm-tools 0.3-2

Git Clone URL: https://aur.archlinux.org/bpm-tools.git (read-only, click to copy)
Package Base: bpm-tools
Description: Tools to calculate tempo of audio tracks, display graphs and tag files with bpm value
Upstream URL: http://www.pogo.org.uk/~mark/bpm-tools/
Keywords: audio bpm tempo
Licenses: GPL2
Submitter: desbma
Maintainer: desbma
Last Packager: desbma
Votes: 6
Popularity: 0.080237
First Submitted: 2017-04-23 20:43 (UTC)
Last Updated: 2020-03-30 11:02 (UTC)

Dependencies (5)

Required by (0)

Sources (3)

Latest Comments

after commented on 2018-08-30 05:44 (UTC)

Thank you, too. I learned something from this.

desbma commented on 2018-08-29 18:28 (UTC)

@after: I have added your fix in 0.3-2, thanks.

after commented on 2018-08-29 17:10 (UTC) (edited on 2018-08-29 17:11 (UTC) by after)

@desbma: https://pastebin.com/spku8t0g

Changing "-R" to "-l" in line 91 fixes the problem entirely. I tested it with a new file and it worked, then tested it with the same file again and it correctly said ": already tagged, 89.453 BPM"

desbma commented on 2018-08-27 20:24 (UTC)

@after

It's weird 'man id3v2' still documents the -R switch, but is is however not recognized.

If you can provide a patch for the bpm-tag script, I'd be happy to add it and mention you as a contributor.

after commented on 2018-08-27 19:09 (UTC) (edited on 2018-08-27 19:11 (UTC) by after)

This seems to have been created for a different version of id3v2. When I run bpm-tag, it says id3v2: invalid option -- 'R' and won't update the tags in the mp3 file, though it does output the BPM to stderr.

I wrote this little workaround to tag everything in my music library:

#!/bin/bash
MUSICDIR="$HOME/Music/"
cd "$MUSICDIR"

find -type f -iname "*.mp3" | while read FILE
do
    BPM=`bpm-tag -n "$FILE" 2>&1 > /dev/null | grep BPM | awk '{print $(NF-1)}'` #105.587
    echo $FILE $BPM
    id3v2 --TBPM $BPM "$FILE"
done