diff options
Diffstat (limited to 'src/mml_composemusic_mcp/semantic_pyxel.py')
| -rw-r--r-- | src/mml_composemusic_mcp/semantic_pyxel.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mml_composemusic_mcp/semantic_pyxel.py b/src/mml_composemusic_mcp/semantic_pyxel.py index 32808d1..7bf94ba 100644 --- a/src/mml_composemusic_mcp/semantic_pyxel.py +++ b/src/mml_composemusic_mcp/semantic_pyxel.py @@ -362,7 +362,11 @@ class PyxelSemanticAnalyzer(SemanticAnalyzer): points = [] for i in range(1, len(stmt.params), 2): duration = stmt.params[i] - target = stmt.params[i - 1] if i - 1 < len(stmt.params) else stmt.params[-1] + target = ( + stmt.params[i - 1] + if i - 1 < len(stmt.params) + else stmt.params[-1] + ) points.append({"target_volume": target, "duration_ticks": duration}) ev = EnvelopeEvent( tick_position=self.tick_position, |
