Skip to content

Commit 7639c4f

Browse files
committed
fixed bug where odd tonics display one octave off
1 parent 34e18c5 commit 7639c4f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/core.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -478,13 +478,6 @@ def mouse_hover(self, x, y):
478478
def get_octave(self, x, y):
479479
"""Get octave for x, y"""
480480
y = self.board_h - y - 1
481-
# if self.flipped:
482-
# if self.tonic % 2 == 0:
483-
# y -= 1
484-
# octave = int(x + 4 + self.position.x + y * 2.5) // 6
485-
# else:
486-
if self.tonic % 2:
487-
y -= 1
488481
octave = int(x + 4 + self.position.x + y * 2.5) // 6
489482
return octave
490483

0 commit comments

Comments
 (0)