This commit is contained in:
bel
2021-09-14 06:36:09 -06:00
commit 5abbfb5740
15 changed files with 701 additions and 0 deletions

23
chords2midi/install.sh Normal file
View File

@@ -0,0 +1,23 @@
#! /bin/bash
set -e
cd "$(dirname "$BASH_SOURCE")"
if ! [ -f ./c2m.py ]; then
curl -L https://github.com/Miserlou/chords2midi/raw/master/chords2midi/c2m.py > ./c2m.py
fi
if ! [ -f ./req.txt ]; then
curl -L https://github.com/Miserlou/chords2midi/raw/master/requirements.txt > ./req.txt
pip2.7 install -r ./req.txt
fi
if ! [ -f ./chords2midi.py ]; then
echo "#! $(which python2)" > ./chords2midi.py
cat ./c2m.py >> ./chords2midi.py
fi
chmod +x ./chords2midi.py
if ! which timidity; then
brew install timidity
fi
echo ./chords* ARGUMENTS
echo timidity ./*.mid