summaryrefslogtreecommitdiff
path: root/src/mml_composemusic_mcp/parser_ppmck.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mml_composemusic_mcp/parser_ppmck.py')
-rw-r--r--src/mml_composemusic_mcp/parser_ppmck.py2
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: