Sample Header Ad - 728x90

Is there any sort of command-line tool I can use to detect and write metadata for a song's key?

1 vote
1 answer
363 views
I would like to get into DJing, or at least putting songs together in series and making it work. I have already used bpmwrap to tag the tempo for every song in my library, and it immediately made me realize that even when the tempo work is done for me, it's very hard for me to match the key. Is there any command-line tool for Linux that I can use to tag the key of every song in my library? Edit: here is the text of the script that I wrote to analyze both key and tempo. You can modify it as necessary. I can clarify stuff if anyone needs it but I'm tired rn and won't do it now
#!/bin/bash
total=$(tree | grep .mp3 | wc -l)
declare -i count=0
echo -ne "Analyzing tempos... unknown/$total \r"
/home/spyndling/bigboy4tb/compiling/bpmwrap/bpmwrap.sh -w "/home/spyndling/bigboy4tb/Music imports/" > /dev/null
echo -ne "\033[2K"
echo "Tempos analyzed."
for f in ./**/**/*.mp3; do
	count+=1
	echo -ne "Analyzing keys... $count/$total \r"
	mid3v2 --TKEY "$(keyfinder-cli "$f")" "$f"
	echo -ne "\033[2K"
done
echo "Keys analyzed."
Asked by Gridzbi Spudvetch (65 rep)
Jun 25, 2024, 09:22 PM
Last activity: Nov 5, 2024, 06:40 AM