Skip to content

Commit

Permalink
fix error when absolute_timing is False
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosholivan committed Mar 7, 2023
1 parent 274fd7c commit 262bf42
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions musicaiz/tokenizers/mmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,9 @@ def tokens_to_musa(
resolution: int = TimingConsts.RESOLUTION.value,
) -> Musa:

# TODO: Support time sig. changes
# TODO: Support time sig. changes and absolte_timing=False

if absolute_timing:
_, ticks_bar = ticks_per_bar(time_sig, resolution)
_, ticks_bar = ticks_per_bar(time_sig, resolution)

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

0 comments on commit 262bf42

Please sign in to comment.