diff --git a/vinscant/mpfiles/lib/music.py b/vinscant/mpfiles/lib/music.py index 8c88fbf..67a8586 100644 --- a/vinscant/mpfiles/lib/music.py +++ b/vinscant/mpfiles/lib/music.py @@ -9,7 +9,7 @@ def __init__(self, melody: io.IOBase, pin: Pin) -> None: @staticmethod def midi_to_freq(note: int): - return 440 * 2**((float(note) - 69) / 12) + return 440 * 2**((float(note) - 69) / 12) / 2 def start(self): self.timer.init(mode=Timer.PERIODIC, freq=1, callback=self.playNote)