1 | commit ff5d07b842cc6cd04784ff38a6337757e72d7451 |
2 | Author: acidvegas <acid.vegas@acid.vegas> |
3 | Date: Thu Jul 25 02:32:18 2019 -0400 |
4 | |
5 | added compound intervals |
6 | --- |
7 | mzk/constants.py | 17 ++++++++++++++++- |
8 | 1 file changed, 16 insertions(+), 1 deletion(-) |
9 | |
10 | diff --git a/mzk/constants.py b/mzk/constants.py |
11 | index 05d59f2..18dc1b0 100644 |
12 | --- a/mzk/constants.py |
13 | +++ b/mzk/constants.py |
14 | @@ -34,6 +34,21 @@ colors = { |
15 | 'reset' : '\033[0m' |
16 | } |
17 | |
18 | +compound_intervals = { |
19 | + 'minor_ninth' : {'semitones':13, 'short_name':'m9'}, |
20 | + 'major_ninth' : {'semitones':14, 'short_name':'M9'}, |
21 | + 'minor_tenth' : {'semitones':15, 'short_name':'m10'}, |
22 | + 'major_tenth' : {'semitones':16, 'short_name':'M10'}, |
23 | + 'perfect_eleventh' : {'semitones':17, 'short_name':'P11'}, |
24 | + 'augmented_eleventh' : {'semitones':18, 'short_name':'TT'}, |
25 | + 'perfect_twelfth' : {'semitones':19, 'short_name':'P12'}, |
26 | + 'minor_thirteenth' : {'semitones':20, 'short_name':'m13'}, |
27 | + 'major_thirteenth' : {'semitones':21, 'short_name':'M13'}, |
28 | + 'minor_fourteenth' : {'semitones':22, 'short_name':'m14'}, |
29 | + 'major_fourteenth' : {'semitones':23, 'short_name':'M14'}, |
30 | + 'double_octave' : {'semitones':25, 'short_name':'15ma'} |
31 | +} |
32 | + |
33 | intervals = { |
34 | 'perfect_unison' : {'semitones':0, 'short_name':'P1'}, |
35 | 'minor_second' : {'semitones':1, 'short_name':'m2'}, |
36 | @@ -47,7 +62,7 @@ intervals = { |
37 | 'major_sixth' : {'semitones':9, 'short_name':'M6'}, |
38 | 'minor_seventh' : {'semitones':10, 'short_name':'m7'}, |
39 | 'major_seventh' : {'semitones':11, 'short_name':'M7'}, |
40 | - 'perfect_octave' : {'semitones':12, 'short_name':'P8'} |
41 | + 'perfect_octave' : {'semitones':12, 'short_name':'8va'} |
42 | } |
43 | |
44 | notes = ('A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#') |