Skip to content

Instantly share code, notes, and snippets.

@timpulver
Last active December 18, 2015 02:39
Show Gist options
  • Save timpulver/5712869 to your computer and use it in GitHub Desktop.
Save timpulver/5712869 to your computer and use it in GitHub Desktop.
This is a helper script for Yate, which calls the application KeyFinder to analyse the musical key of a track and return it. If you set up custom key codes (Camelot system) in KeyFinder, these will also be returned.
#!/bin/bash
# getkey.sh – Musical Key Analysis
#
# This is a helper script for Yate, which calls the application
# KeyFinder to analyse the musical key of a track and return it.
# If you set up custom key codes (Camelot system) in KeyFinder,
# these will also be returned.
#
# Download KeyFinder here: http://www.ibrahimshaath.co.uk/keyfinder/
# argument1: Path to mp3 / flac / m4a? file
cd /Applications/KeyFinder.app/Contents/MacOS/
RET=$(./KeyFinder -f "$1")
echo $RET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment