Add notes
score.add_notesAdd notes to a region of a score, up to 2,000 a call. Each note: pitch (a MIDI number 0–127, decimals allowed: 60.5 is a quarter-tone above middle C; or a name such as C3 or F#4; C4 is 60, middle C), at_beats (from the region’s start), length_beats and velocity (1–127, how hard it is struck). On a drum kit or a sliced sampler a pitch selects a sound, not a height (score.get lists which pitch plays what). at_seconds and length_seconds may be given in place of the beats, which puts a note on an exact moment, on the grid or off it. Exactly what is passed is stored: nothing is moved to a grid or a scale. Returns the new score_id (edit that one next) and note_ids in the order given.
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": {
"region_id": "<region_id>",
"notes": "<notes>",
"score_id": "<score_id>"
},
"name": "score.add_notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | [{pitch, at_beats, length_beats, velocity}], or at_seconds and length_seconds for the two positions | |
| score_id | Yes | The score to edit | |
| region_id | Yes | A notes region |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | Yes | The version this edit started from | |
| changed | Yes | What the edit added, removed or modified | |
| note_ids | Yes | In the order the notes were given | |
| score_id | Yes | The new version: edit this one next (older ids stay valid) | |
| warnings | Yes |