Skip to content

Commit

Permalink
Preprations for additional clefs
Browse files Browse the repository at this point in the history
  • Loading branch information
liebharc committed Jul 3, 2024
1 parent abaa7fb commit 1a2b944
Show file tree
Hide file tree
Showing 13 changed files with 158 additions and 266 deletions.
5 changes: 2 additions & 3 deletions homr/accidental_detection.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from homr import constants
from homr.bounding_boxes import RotatedBoundingBox
from homr.model import Accidental, Prediction, Staff
from homr.model import Accidental, Staff


def add_accidentals_to_staffs(
Expand Down Expand Up @@ -32,8 +32,7 @@ def add_accidentals_to_staffs(

position = point.find_position_in_unit_sizes(accidental)
accidental_bbox = accidental.to_bounding_box()
prediction = Prediction({}, 0)
clef_symbol = Accidental(accidental_bbox, prediction, position)
clef_symbol = Accidental(accidental_bbox, position)
staff.add_symbol(clef_symbol)
result.append(clef_symbol)
return result
Loading

0 comments on commit 1a2b944

Please sign in to comment.