swap_voices
Exchange the notes and rests of two voices within a bar range, letting divisi lines trade places in one undo step while slurs, text and markings stay with their voice.
Instructions
Exchange the notes and rests of two voices in a range (e.g. divisi lines trading places), one undo step. Notes are re-created with their pitch and rhythm (new ids); slurs, text and markings stay in their voice.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"voice": "<voice>",
"other_voice": "<other_voice>"
},
"name": "swap_voices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | No | ||
| voice | Yes | ||
| to_bar | No | ||
| to_pos | No | ||
| from_bar | No | ||
| from_pos | No | ||
| other_voice | Yes |