Skip to content

Commit 262bf42

Browse files
committed
fix error when absolute_timing is False
1 parent 274fd7c commit 262bf42

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

musicaiz/tokenizers/mmm.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,9 @@ def tokens_to_musa(
379379
resolution: int = TimingConsts.RESOLUTION.value,
380380
) -> Musa:
381381

382-
# TODO: Support time sig. changes
382+
# TODO: Support time sig. changes and absolte_timing=False
383383

384-
if absolute_timing:
385-
_, ticks_bar = ticks_per_bar(time_sig, resolution)
384+
_, ticks_bar = ticks_per_bar(time_sig, resolution)
386385

387386
"""Converts a str valid tokens sequence in Musa objects."""
388387
# Initialize midi file to write

0 commit comments

Comments
 (0)