Skip to content

Commit

Permalink
add tick units
Browse files Browse the repository at this point in the history
  • Loading branch information
sildater committed Jan 13, 2025
1 parent 356429d commit 1a55eb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion partitura/utils/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
"A#",
]

TIME_UNITS = ["beat", "quarter", "sec", "div"]
TIME_UNITS = ["beat", "quarter", "sec", "div", "tick"]

NOTE_NAME_PATT = re.compile(r"([A-G]{1})([xb\#]*)(\d+)")

Expand Down
2 changes: 1 addition & 1 deletion partitura/utils/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ def compute_pianoroll(
if time_div == "auto":
if onset_unit in ("onset_beat", "onset_quarter", "onset_sec"):
time_div = 8
elif onset_unit == "onset_div":
elif onset_unit in ("onset_div", "onset_tick"):
time_div = 1
else:
time_div = int(time_div)
Expand Down

0 comments on commit 1a55eb1

Please sign in to comment.