Skip to content

Commit

Permalink
Added 3 minor chord progressions
Browse files Browse the repository at this point in the history
All chords are now 1 octave above
  • Loading branch information
ldrolez committed Nov 19, 2020
1 parent ec9dd1a commit 79951bb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gen.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

# Copyright (c) 2019 Ludovic Drolez
# Copyright (c) 2019-2020 Ludovic Drolez

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -57,7 +57,7 @@ def gen(dir, key, chords, prefix):
if not os.path.exists(dir):
os.makedirs(dir)
c2m_obj = c2m.Chords2Midi()
c2m_obj.handle([f"{chords}", "-t", "4", "-p", "long", "-d", "4",
c2m_obj.handle([f"{chords}", "-t", "5", "-p", "long", "-d", "4",
"-B", "--key", f"{key}", "-N", f"{prefix} - {chords}", "--output",
f"{dir}/{prefix} - {chords}.mid"])

Expand All @@ -69,7 +69,7 @@ def genprog(dir, key, chords, prefix):
os.makedirs(dir)
c2m_obj = c2m.Chords2Midi()
args = chords.split(" ")
args.extend(["-t", "4", "-p", "long", "-d", "4", "-B",
args.extend(["-t", "5", "-p", "long", "-d", "4", "-B",
"--key", f"{key}", "-N", f"{prefix} - {chords}", "--output",
f"{dir}/{prefix} - {chords}.mid"])
c2m_obj.handle(args)
Expand Down Expand Up @@ -180,7 +180,8 @@ def genprog(dir, key, chords, prefix):
"i ii v i", "i iv v iv", "i iv VI v", "i iv VII i",
"i iv VII v i i ii V", "i v iv VII",
"i VI III bii", "i VI iv ii", "i VI III VII", "i VI VII VII",
"i bVIIM VI bii", "i VII VI VII", "i VII i v",
"i VI VII v", "i VI III VII i VI9 III VII",
"i bVIIM VI bii", "i VII VI III", "i VII VI VII", "i VII i v",
"i VII i v III VII i v i", "i bVIIM bVIM bVIIM",
"ii v i i", "ii v i iv", "ii VI i iv", "ii7 v9 i7",
"iv i v VI", "iv VI VII i", "iv III VII i", "iv v VI VII",
Expand Down

0 comments on commit 79951bb

Please sign in to comment.