Skip to content

Commit

Permalink
Minor and major chords split following the chord degree in the all ch…
Browse files Browse the repository at this point in the history
…ords folders
  • Loading branch information
ldrolez committed Jan 6, 2023
1 parent 4d96538 commit 89c61bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gen.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

# Copyright (c) 2019-2021 Ludovic Drolez
# Copyright (c) 2019-2023 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 @@ -127,6 +127,11 @@ def genprog(dir, key, chords, prefix, style = ''):
# All Other chords
i = 0
for c in [1, 2, 3, 4, 5, 6, 7]:
if c == 1 or c == 4 or c == 5:
chord_types = chord_types_maj
else:
chord_types = chord_types_min

for n in chord_types:
chord = scale_maj[i] + n
gen(f'{base}/3 All chords/', root_maj, chord, deg_maj[i]
Expand Down

0 comments on commit 89c61bf

Please sign in to comment.