Enable tuning

This commit is contained in:
Bartłomiej Pluta
2019-09-06 22:54:22 +02:00
parent 83ef3f6888
commit 24bcb25bee
5 changed files with 56 additions and 31 deletions

View File

@@ -16,8 +16,8 @@ class Note:
self.duration = duration
self.dot = dot
def toFrequency(self):
return self.note.toFrequency() * 2 ** self.octave
def toFrequency(self, tuning):
return tuning[self.note] * 2 ** self.octave
def transpose(self, interval):
origIntRepr = self._intRepr()