Render notes
render.notesLook at a score's notes: a piano roll as an image, time left to right, one row per pitch with note names up the side, one colour per part, bar and beat lines. A range of beats, and parts to show (default all). It is drawn on the same axes as render.spectrogram, so the two can be compared row for row. Comes inline and with a signed download url. Time runs in seconds by the score's tempo map, as the music plays; rows run C1 to B9, A4 = 440 Hz. A note's fill is as strong as its velocity, with a white line where it starts. The notes drawn are the ones the score plays: each notes region plays its source's notes that start inside it, a region that shares a source shows them too, and a note that starts outside its region is silent and not drawn. Audio regions are sound, not notes: render.spectrogram shows them. The result names each part's colour, the plot's pixel box and where each bar line is.
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": {
"score_id": "<score_id>"
},
"name": "render.notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parts | No | part_ids to draw. Default all | |
| score_id | Yes | The score | |
| long_edge | No | Longest side (the width) in pixels; rows get taller with it | |
| from_beats | No | Start of the range. Default 0 | |
| until_beats | No | End of the range. Default the score's end |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | Yes | ||
| plot | Yes | The plot in image pixels: a time t is at x = left + (t - from_seconds) / seconds_per_pixel; a row is row_pixels high, the highest at top | |
| image | Yes | ||
| notes | Yes | Notes drawn in all | |
| parts | Yes | ||
| pitch | Yes | ||
| score_id | Yes | ||
| beat_lines | Yes | ||
| from_beats | Yes | ||
| until_beats | Yes | ||
| from_seconds | Yes | ||
| audio_regions | Yes | Audio regions in the range: sound, not notes, so not drawn | |
| until_seconds | Yes | ||
| seconds_per_pixel | Yes | ||
| notes_outside_rows | Yes | Notes below the lowest row or above the highest, not drawn |