Add Note
add_noteInsert a note at the current score cursor using a MIDI pitch and note duration; write melodies sequentially or stack pitches into the current chord.
Instructions
Add a note at the current cursor position with the specified pitch and duration. Sequential notes write a melody. Set add_to_chord=True to stack a pitch on the current chord.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_note"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pitch | No | MIDI pitch value (0-127, where 60 is middle C) | |
| duration | No | Duration as {"numerator": int, "denominator": int} (e.g. {"numerator": 1, "denominator": 4} for a quarter note) | |
| add_to_chord | No | If True, add this pitch to the current chord instead of writing the next melody note | |
| advance_cursor_after_action | No | Whether to move cursor to next position after adding note |