Add Tied Note
add_tied_noteWrite the next note or chord tied to the chord before the cursor, extending it across a barline after adding a note. Specify pitches to tie only selected pitches or extra pitches for new chord tones.
Instructions
Write the next note or chord at the cursor, tied to the chord before the cursor: like pressing + in MuseScore's note input. Use it after add_note to hold a note longer, e.g. across a barline. By default the new chord repeats every pitch of the chord before it, all tied; pass pitches to tie only some of them, and extra_pitches for new pitches in the same chord without a tie (e.g. C-E-G into C-E-A: pitches=[60, 64], extra_pitches=[69]). Add new pitches this way, not with add_note(add_to_chord=True) afterwards: MuseScore treats tied chords as one and would also add the pitch, tied, to the chord before. A note longer than the rest of the bar is split at the barline into tied notes, and the cursor moves past all of it. Fails without changing the score when there is no note before the cursor or a pitch is not in it.
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": {
"duration": "<duration>"
},
"name": "add_tied_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pitches | No | MIDI pitches of the chord before the cursor to continue with a tie. Default: all of them. | |
| duration | Yes | Duration of the new note as {"numerator": int, "denominator": int} (e.g. {"numerator": 1, "denominator": 8} for an eighth note) | |
| extra_pitches | No | MIDI pitches to add to the new chord without a tie (e.g. [69]) | |
| advance_cursor_after_action | No | Whether to move the cursor past the new note |