Skip to content

Commit

Permalink
Add support for Simai divisors with float values
Browse files Browse the repository at this point in the history
  • Loading branch information
donmai-me committed Jul 6, 2021
1 parent 0bad215 commit f828731
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion maiconverter/simai/simai.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self):
Union[TapNote, HoldNote, SlideNote, TouchTapNote, TouchHoldNote]
] = []
self.bpms: List[BPM] = []
self._divisor: Optional[int] = None
self._divisor: Optional[float] = None
self._measure = 1.0

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion maiconverter/simai/simai_fragment.lark
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ duration: "[" /(\d+(\.\d*)?#)/? INT ":" INT "]"
// duration: "[" equivalent_bpm INT ":" INT "]"

bpm: "(" NUMBER ")"
divisor: "{" INT "}"
divisor: "{" NUMBER "}"

tap_hold_note: /[0-8][hbex$]*/ duration?

Expand Down

0 comments on commit f828731

Please sign in to comment.