copyparty/bin/mtag
2021-05-29 03:43:30 +02:00
..
audio-bpm.py mtag-bin: support alpine + misc health checks 2021-03-18 01:01:57 +01:00
audio-key.py mtag-bin: support macos (macports) 2021-03-17 23:57:18 +01:00
exe.py add multitag example 2021-05-29 03:43:30 +02:00
file-ext.py general-purpose file parsing 2021-05-16 07:04:18 +02:00
install-deps.sh build beatroot from source if need be 2021-03-19 00:43:23 +01:00
README.md readme 2021-03-21 20:20:11 +01:00
sleep.py better task recovery on restart 2021-03-21 05:57:24 +01:00

standalone programs which take an audio file as argument

some of these rely on libraries which are not MIT-compatible

  • audio-bpm.py detects the BPM of music using the BeatRoot Vamp Plugin; imports GPL2
  • audio-key.py detects the melodic key of music using the Mixxx fork of keyfinder; imports GPL3

dependencies

run install-deps.sh to build/install most dependencies required by these programs (supports windows/linux/macos)

alternatively (or preferably) use packages from your distro instead, then you'll need at least these:

  • from distro: numpy vamp-plugin-sdk beatroot-vamp mixxx-keyfinder ffmpeg
  • from pypy: keyfinder vamp

usage from copyparty

copyparty -e2dsa -e2ts -mtp key=f,audio-key.py -mtp .bpm=f,audio-bpm.py

  • f, makes the detected value replace any existing values
  • the . in .bpm indicates numeric value
  • assumes the python files are in the folder you're launching copyparty from, replace the filename with a relative/absolute path if that's not the case
  • mtp modules will not run if a file has existing tags in the db, so clear out the tags with -e2tsr the first time you launch with new mtp options

usage with volume-flags

instead of affecting all volumes, you can set the options for just one volume like so:

copyparty -v /mnt/nas/music:/music:r:cmtp=key=f,audio-key.py:cmtp=.bpm=f,audio-bpm.py:ce2dsa:ce2ts