Skip to content

Commit 6b8aa7a

Browse files
committed
Now use a modified Python Mingus lib to have more chords types
1 parent a029041 commit 6b8aa7a

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
DATE=$(shell date +'%Y%m%d')
22

3-
dist:
3+
# Chords distribution
4+
dist: check
45
rm -rf output/*
56
# full pack
6-
python3 gen.py
7+
env PYTHONPATH=python-mingus/ python3 gen.py
78
cp README.md LICENSE output
89
rm -f dist/free-midi-chords-${DATE}.zip
910
cd output; zip -r ../dist/free-midi-chords-${DATE}.zip *
@@ -13,4 +14,8 @@ dist:
1314
cp README.md LICENSE output/progression/4\ Progression
1415
cd output/progression/4\ Progression; zip -r ../../../dist/free-midi-progressions-${DATE}.zip *
1516

16-
.PHONY: dist
17+
# Check for GIT version of python-mingus
18+
check:
19+
@test -f ./python-mingus/README.md || { echo "To build the pack you will need the modified python-mingus library:\n git clone https://github.com/ldrolez/python-mingus.git" ; exit 1; }
20+
21+
.PHONY: check dist

gen.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23+
# To build the pack you will need the modified python-mingus library:
24+
# https://github.com/ldrolez/python-mingus.git
25+
# It seems that python-mingus is not maintained and a few important
26+
# chords are missing for some progressions.
27+
2328
import os
2429
import mingus.core.scales as scales
2530

0 commit comments

Comments
 (0)