A convenience script for managing loudness-related metadata for music files.
Run in a directory with *.flac files. Assumes the directory is an album.
Currently only *.flac is supported
dr14_tmetermetaflac- GNU
sleep
beets— for updating the beets database
Uses POSIX shell, verified by shellcheck. Most of the heavy lifing is done by the programs, so there's no need for bashisms.
Commands with weakly defined behaviour are avoided, see the spinner function:
spinner() {
printf "%s" "$1"
while true
do
printf "%s\b" "-"
sleep 0.1
printf "%s\b" \\
sleep 0.1
printf "%s\b" "|"
sleep 0.1
printf "%s\b" "/"
sleep 0.1
done
}No echo!
- Refactoring
- Use
loudgain - Beets integration for optional
beet update