-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dictionary.py
158 lines (128 loc) · 9.76 KB
/
Dictionary.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
lookup = {'C2': 60, 'C#2': 61,'D2': 62,'D#2': 63,'E2': 64,'F2': 65,'F#2': 66,'G2': 67,'G#2': 68,
'A2': 69,'A#2': 70,'B2': 71,'C3': 48, 'C#3': 49,'D3': 50,'D#3': 51,'E3': 52,'F3': 53,
'F#3': 54,'G3': 55,'G#3': 56,'A3': 57,'A#3': 58,'B3': 59,'C4': 60, 'C#4': 61,'D4': 62,
'D#4': 63,'E4': 64,'F4': 65,'F#4': 66,'G4': 67,'G#4': 68,'A4': 69,'A#4': 70,'B4': 71,
'C5': 72, 'C#5': 73,'D5': 74,'D#5': 75,'E5': 76,'F5': 77,'F#5': 78,'G5': 79,'G#5': 80,
'A5': 81,'A#5': 82,'B5': 83,'C6': 84, 'C#6': 85,'D6': 86,'D#6': 87,'E6': 88,'F6': 89,
'F#6': 90,'G6': 91,'G#6': 92,'A6': 93,'A#6': 94,'B6': 95,'C7': 96, 'C#7': 97,'D7': 98,
'D#7': 99,'E7': 100,'F7': 101,'F#7': 102,'G7': 103,'G#7': 104,'A7': 105,'A#7': 106,
'B7': 107}
Somber = ['Fm','A#m','G#','C#',]
Ballad = ['A','F#m','C#m','D',]
Creepy = ['Bm','G','Em','F#m',]
chordsSelected = ['Fm','A#m','G#','C#',]
Happy = ['D','A','D','G',]
Joyful = ['G','C','G','D',]
notesIn = {'A' : ['A','B','C#','D','E','F#','G#'], 'B' : ['B','C#','D#','E','F#','G#','A#'],
'C':['C','D','E','F','G','A','B'], 'D' : ['D','E','F#','G','A','B','C'],
'E' : ['E','F#','G#','A','B','C#','D#'], 'F' : ['F','G','A','A#','C','D','E'],
'G' : ['G','A','B','C','D','E','F#'],
'A#' : ['A#','C','D','D#','F','G','A'],
'C#' : ['C#','D#','F','F#','G#','A#','C'],'D#' : ['D#','F','G','G#','A#','C','D'],
'G#' : ['G#','A#','C','C#','D#','F','G'], 'F#' : ['F#','G#','A#','B','C#','D#','F'],
'Am': ['A', 'B', 'C', 'D', 'E', 'F', 'G'], 'Bm': ['B', 'C#', 'D', 'E', 'F#', 'G', 'A'],
'Cm': ['C', 'D', 'D#', 'F', 'G', 'G#', 'A#'], 'Dm': ['D', 'E', 'F', 'G', 'A', 'A#', 'C'],
'Em': ['E', 'F#', 'G', 'A', 'B', 'C', 'D'], 'Fm': ['F', 'G', 'G#', 'A#', 'C', 'C#', 'D#'],
'Gm': ['G', 'A', 'A#', 'C', 'D', 'D#', 'F'],
'A#m': ['A#', 'C', 'C#', 'D#', 'F', 'F#', 'G#'],
'C#m': ['C#', 'D#', 'E', 'F#', 'G#', 'A', 'B'], 'D#m': ['D#', 'F', 'F#', 'G#', 'A#', 'B', 'C#'],
'G#m': ['G#', 'A#', 'B', 'C#', 'D#', 'E', 'F#'], 'F#m': ['F#', 'G#', 'A', 'B', 'C#', 'D', 'E']
}
noteChoices = {'A' : ['A','B','C#','E','G#'], 'B' : ['B','C#','D#','F#','A#'],
'C':['C','D','E','G','B'], 'D' : ['D','E','F#','A','C'],
'E' : ['E','F#','G#','B','D#'], 'F' : ['F','G','A','C','E'],
'G' : ['G','A','B','D','F#'],
'A#' : ['A#','C','D','F','A'],
'C#' : ['C#','D#','F','G#','C'],'D#' : ['D#','F','G','A#','D'],
'G#' : ['G#','A#','C','D#','G'], 'F#' : ['F#','G#','A#','C#','F'],
'Am': ['A', 'B', 'C', 'E', 'G'], 'Bm': ['B', 'C#', 'D', 'F#', 'A'],
'Cm': ['C', 'D', 'D#', 'G', 'A#'], 'Dm': ['D', 'E', 'F', 'A', 'C'],
'Em': ['E', 'F#', 'G', 'B', 'D'], 'Fm': ['F', 'G', 'G#', 'C', 'D#'],
'Gm': ['G', 'A', 'A#', 'D', 'F'],
'A#m': ['A#', 'C', 'C#', 'F', 'G#'],
'C#m': ['C#', 'D#', 'E', 'G#', 'B'], 'D#m': ['D#', 'F', 'F#', 'A#', 'C#'],
'G#m': ['G#', 'A#', 'B', 'D#', 'F#'], 'F#m': ['F#', 'G#', 'A', 'C#', 'E']
}
Chords = {'A' : ['A','A','C#','E'], 'B' : ['B','B','D#','F#'],
'C':['C','C','E','G'], 'D' : ['D','D','F#','A'],
'E' : ['E','E','G#','B'], 'F' : ['F','F','A','C'],
'G' : ['G','G','B','D'],
'A#' : ['A#','A#','D','F'],
'C#' : ['C#','C#','F','G#'],'D#' : ['D#','D#','G','A#'],
'G#' : ['G#','G#','C','D#'], 'F#' : ['F#','F#','A#','C#'],
'Am': ['A', 'A', 'C', 'E'], 'Bm': ['B','B', 'D', 'F#'],
'Cm': ['C','C', 'D#', 'G'], 'Dm': ['D','D', 'F', 'A'],
'Em': ['E','E', 'G', 'B'], 'Fm': ['F','F', 'G#', 'C', ],
'Gm': ['G','G', 'A#', 'D', ],
'A#m': ['A#','A#', 'C#', 'F'],
'C#m': ['C#','C#', 'E', 'G#'], 'D#m': ['D#','D#', 'F#', 'A#'],
'G#m': ['G#','G#', 'B', 'D#'], 'F#m': ['F#','F#', 'A', 'C#'],
'e_7':['D#','A#','C#','F'], 'fm7' : ['F','C','D#','G#'],
'G_M7':['F#','A#','C#','F'], 'g*7':['G','E','A#','D#'],
'A_s':['G#','G#','C#','D#'], 'Fs':['C','C','F','A#'],
'e_m7' : ['D#','A#','C#','F#'], 'F7':['F','C','D#','A'],
'F/A':['A','C','F','A'], 'D7/A':['G#','C','C#','F'],
'B/G':['G','A#','D#','G'],
}
#chordsSelected = ['e_7', 'fm7', 'G_M7', 'g*7', 'A_s', 'Fs', 'F', 'G_M7', 'G#', 'fm7', 'A#m', 'e_m7', 'F7', 'A#m', 'F/A', 'D7/A', 'B/G', 'G_M7', 'G#', 'fm7', 'A#m','e_7','F7','A#m','A#']
#THESE DICTIONARIES ARE INCORRECT AND NEED TO BE ADJUSTED
Alternative_Main = {'A' : ['A','B','C#','D','E','F#','G#'], 'B' : ['B','C#','D#','E','F#','G#','A#'],
'C':['C','D','E','F','G','A','B'], 'D' : ['D','E','F#','G','A','B','C'],
'E' : ['E','F#','G#','A','B','C#','D#'], 'F' : ['F','G','A','A#','C','D','E'],
'G' : ['G','A','B','C','D','E','F#'],
'A#' : ['A#','C','D','D#','F','G','A'],
'C#' : ['C#','D#','F','F#','G#','A#','C'],'D#' : ['D#','F','G','G#','A#','C','D'],
'G#' : ['G#','A#','C','C#','D#','F','G'], 'F#' : ['F#','G#','A#','B','C#','D#','F'],
'Am': ['A', 'B', 'C', 'D', 'E', 'F', 'G'], 'Bm': ['B', 'C#', 'D', 'E', 'F#', 'G', 'A'],
'Cm': ['C', 'D', 'D#', 'F', 'G', 'G#', 'A#'], 'Dm': ['D', 'E', 'F', 'G', 'A', 'A#', 'C'],
'Em': ['E', 'F#', 'G', 'A', 'B', 'C', 'D'], 'Fm': ['F', 'G', 'G#', 'A#', 'C', 'C#', 'D#'],
'Gm': ['G', 'A', 'A#', 'C', 'D', 'D#', 'F'],
'A#m': ['A#', 'C', 'C#', 'D#', 'F', 'F#', 'G#'],
'C#m': ['C#', 'D#', 'E', 'F#', 'G#', 'A', 'B'], 'D#m': ['D#', 'F', 'F#', 'G#', 'A#', 'B', 'C#'],
'G#m': ['G#', 'A#', 'B', 'C#', 'D#', 'E', 'F#'], 'F#m': ['F#', 'G#', 'A', 'B', 'C#', 'D', 'E']
}
Alternative_CMajor = {'A' : ['A','B','C#','D','E','F#','G#'], 'B' : ['B','C#','D#','E','F#','G#','A#'],
'C':['C','D','E','F','G','A','B'], 'D' : ['D','E','F#','G','A','B','C'],
'E' : ['E','F#','G#','A','B','C#','D#'], 'F' : ['F','G','A','A#','C','D','E'],
'G' : ['G','A','B','C','D','E','F#'],
'A#' : ['A#','C','D','D#','F','G','A'],
'C#' : ['C#','D#','F','F#','G#','A#','C'],'D#' : ['D#','F','G','G#','A#','C','D'],
'G#' : ['G#','A#','C','C#','D#','F','G'], 'F#' : ['F#','G#','A#','B','C#','D#','F'],
'Am': ['A', 'B', 'C', 'D', 'E', 'F', 'G'], 'Bm': ['B', 'C#', 'D', 'E', 'F#', 'G', 'A'],
'Cm': ['C', 'D', 'D#', 'F', 'G', 'G#', 'A#'], 'Dm': ['D', 'E', 'F', 'G', 'A', 'A#', 'C'],
'Em': ['E', 'F#', 'G', 'A', 'B', 'C', 'D'], 'Fm': ['F', 'G', 'G#', 'A#', 'C', 'C#', 'D#'],
'Gm': ['G', 'A', 'A#', 'C', 'D', 'D#', 'F'],
'A#m': ['A#', 'C', 'C#', 'D#', 'F', 'F#', 'G#'],
'C#m': ['C#', 'D#', 'E', 'F#', 'G#', 'A', 'B'], 'D#m': ['D#', 'F', 'F#', 'G#', 'A#', 'B', 'C#'],
'G#m': ['G#', 'A#', 'B', 'C#', 'D#', 'E', 'F#'], 'F#m': ['F#', 'G#', 'A', 'B', 'C#', 'D', 'E']
}
Alternative_DMinor = {'A' : ['A','B','C#','D','E','F#','G#'], 'B' : ['B','C#','D#','E','F#','G#','A#'],
'C':['C','D','E','F','G','A','B'], 'D' : ['D','E','F#','G','A','B','C'],
'E' : ['E','F#','G#','A','B','C#','D#'], 'F' : ['F','G','A','A#','C','D','E'],
'G' : ['G','A','B','C','D','E','F#'],
'A#' : ['A#','C','D','D#','F','G','A'],
'C#' : ['C#','D#','F','F#','G#','A#','C'],'D#' : ['D#','F','G','G#','A#','C','D'],
'G#' : ['G#','A#','C','C#','D#','F','G'], 'F#' : ['F#','G#','A#','B','C#','D#','F'],
'Am': ['A', 'B', 'C', 'D', 'E', 'F', 'G'], 'Bm': ['B', 'C#', 'D', 'E', 'F#', 'G', 'A'],
'Cm': ['C', 'D', 'D#', 'F', 'G', 'G#', 'A#'], 'Dm': ['D', 'E', 'F', 'G', 'A', 'A#', 'C'],
'Em': ['E', 'F#', 'G', 'A', 'B', 'C', 'D'], 'Fm': ['F', 'G', 'G#', 'A#', 'C', 'C#', 'D#'],
'Gm': ['G', 'A', 'A#', 'C', 'D', 'D#', 'F'],
'A#m': ['A#', 'C', 'C#', 'D#', 'F', 'F#', 'G#'],
'C#m': ['C#', 'D#', 'E', 'F#', 'G#', 'A', 'B'], 'D#m': ['D#', 'F', 'F#', 'G#', 'A#', 'B', 'C#'],
'G#m': ['G#', 'A#', 'B', 'C#', 'D#', 'E', 'F#'], 'F#m': ['F#', 'G#', 'A', 'B', 'C#', 'D', 'E']
}
Alternative_EMinor = {'A' : ['A','B','C#','D','E','F#','G#'], 'B' : ['B','C#','D#','E','F#','G#','A#'],
'C':['C','D','E','F','G','A','B'], 'D' : ['D','E','F#','G','A','B','C'],
'E' : ['E','F#','G#','A','B','C#','D#'], 'F' : ['F','G','A','A#','C','D','E'],
'G' : ['G','A','B','C','D','E','F#'],
'A#' : ['A#','C','D','D#','F','G','A'],
'C#' : ['C#','D#','F','F#','G#','A#','C'],'D#' : ['D#','F','G','G#','A#','C','D'],
'G#' : ['G#','A#','C','C#','D#','F','G'], 'F#' : ['F#','G#','A#','B','C#','D#','F'],
'Am': ['A', 'B', 'C', 'D', 'E', 'F', 'G'], 'Bm': ['B', 'C#', 'D', 'E', 'F#', 'G', 'A'],
'Cm': ['C', 'D', 'D#', 'F', 'G', 'G#', 'A#'], 'Dm': ['D', 'E', 'F', 'G', 'A', 'A#', 'C'],
'Em': ['E', 'F#', 'G', 'A', 'B', 'C', 'D'], 'Fm': ['F', 'G', 'G#', 'A#', 'C', 'C#', 'D#'],
'Gm': ['G', 'A', 'A#', 'C', 'D', 'D#', 'F'],
'A#m': ['A#', 'C', 'C#', 'D#', 'F', 'F#', 'G#'],
'C#m': ['C#', 'D#', 'E', 'F#', 'G#', 'A', 'B'], 'D#m': ['D#', 'F', 'F#', 'G#', 'A#', 'B', 'C#'],
'G#m': ['G#', 'A#', 'B', 'C#', 'D#', 'E', 'F#'], 'F#m': ['F#', 'G#', 'A', 'B', 'C#', 'D', 'E']
}