Skip to content

Commit

Permalink
Merge pull request #1234 from DDMAL/fix-staffDef
Browse files Browse the repository at this point in the history
fix: update default clef to C4 in `<staffDef>`
  • Loading branch information
yinanazhou authored Dec 16, 2024
2 parents d65c467 + 15843e4 commit 0d85622
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions rodan-main/code/rodan/jobs/MEI_encoding/build_mei_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# import parse_classifier_table as pct #---> for testing locally
from itertools import groupby
from rodan.jobs.MEI_encoding.state_machine import SylMachine

# from state_machine import SylMachine #---> for testing locally

try:
Expand Down Expand Up @@ -211,7 +212,7 @@ def generate_base_document(column_split_info: Optional[dict]):
staffDef.set("n", "1")
staffDef.set("lines", "4")
staffDef.set("notationtype", "neume")
staffDef.set("clef.line", "3")
staffDef.set("clef.line", "4")
staffDef.set("clef.shape", "C")

section = new_el("section", score)
Expand Down Expand Up @@ -889,4 +890,4 @@ def translate_bbox(bbox: dict, ranges: list, height: int, col: int):
new_box["nrows"] = bbox["nrows"]
if "ncols" in bbox:
new_box["ncols"] = bbox["ncols"]
return new_box
return new_box
2 changes: 1 addition & 1 deletion rodan-main/code/rodan/test/files/mei-encoding-test.mei

Large diffs are not rendered by default.

0 comments on commit 0d85622

Please sign in to comment.