diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-07-11 19:35:37 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-07-11 19:35:37 +0900 |
| commit | c2e5098d030fe902eff258e10d2fefc01226e4bf (patch) | |
| tree | 70885d7bae28fde887580d7b631cfa987ea12f19 /src/mml_composemusic_mcp/parser_ppmck.py | |
| parent | 93ca8050531ea99fa1d10ffb7d3f2c965e3a4ebe (diff) | |
テスト追加と修正
Diffstat (limited to 'src/mml_composemusic_mcp/parser_ppmck.py')
| -rw-r--r-- | src/mml_composemusic_mcp/parser_ppmck.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mml_composemusic_mcp/parser_ppmck.py b/src/mml_composemusic_mcp/parser_ppmck.py index c2a1fa3..34a7dd2 100644 --- a/src/mml_composemusic_mcp/parser_ppmck.py +++ b/src/mml_composemusic_mcp/parser_ppmck.py @@ -382,7 +382,7 @@ class PpmckParser: ch = self.note_sequence.channels[self.current_channel] # type: ignore[index] for ev in reversed(ch.events): if isinstance(ev, (NoteEvent, RestEvent)): - return ev.tick_position + return ev.tick_position + ev.duration return self.tick_position def _extend_last_note(self, ticks: int) -> None: |
