-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
executable file
·48 lines (33 loc) · 940 Bytes
/
main.py
File metadata and controls
executable file
·48 lines (33 loc) · 940 Bytes
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
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 14 20:18:18 2019
@author: Erik
"""
import re
# local imports
from cl_scale import scale
from cl_chord import chord
from cl_static import static
def main():
stat = static()
chordModes = list(stat.chords.keys())
scaleModes = list(stat.intervals.keys())
print("You can enter Notes from: \n")
print(stat.chromScaleF)
print(stat.chromScaleS)
note = str(input("\nPlease Enter a Note: "))
print("Now choose a mode for the scale: ")
print(scaleModes)
modeScale = str(input("\nPlease choose: "))
s = scale(note)
s.constructScale(modeScale)
print("Now choose a mode for the chord: ")
print(chordModes)
modeChord = str(input("\nPlease choose: "))
c = chord(note)
c.constructChord(modeChord)
print("\n")
s.show()
print("\n")
c.show()
main()