improvements

This commit is contained in:
2018-09-03 08:56:35 -04:00
parent e527f9e401
commit 930ceba543
2 changed files with 4 additions and 8 deletions
+3 -1
View File
@@ -49,7 +49,7 @@ SCALES = {
"major": {"major": True, "hemitonic": True},
"minor": {"minor": True, "hemitonic": True},
"harmonic minor": {"minor": True, "harmonic": True, "hemitonic": True},
"melodic minor": {"minor": True, "melodic": True, "hemitonic": True},
# "melodic minor": {"minor": True, "melodic": True, "hemitonic": True},
},
],
# TODO: understand this
@@ -69,6 +69,8 @@ SCALES = {
}
}
SYSTEMS = NotImplemented
for i, (degree_name, modes) in enumerate(DEGREES["western"]):
for mode in modes:
SCALES[12]["heptatonic"][1].update(
+1 -7
View File
@@ -1,13 +1,7 @@
from math import ceil, floor
import numeral
from ._statics import REFERENCE_A, TEMPERAMENTS, TONES, DEGREES, SCALES
class Pitch:
def __init__(self, *, frequency):
self.frequency = frequency
from ._statics import REFERENCE_A, TEMPERAMENTS, TONES, DEGREES, SCALES, SYSTEMS
class Tone:
# __slots__ = ("name", "octave", "system")