Get MIDI notes
get_notesRead notes from a MIDI track's clips in Lathe, returning editable notation or JSON lists; filter by clip or bar range to edit and write back patterns.
Instructions
The notes in a MIDI track's clips. By default in Lathe's note notation (see notation_guide): drum grids and token lines, with the bars they cover, ready to edit and write back with write_notes' pattern over the same bars. format "list" gives one JSON object per note instead: pitch (number and name, C3 = middle C), start in bars (1-based) and beats, length in beats, velocity 1-127, at most 2000 notes. Optionally one clip, or only notes between two bars.
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": {
"track": "<track>"
},
"name": "get_notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip | No | Only this clip (id from describe_track) | |
| track | Yes | MIDI track name or id | |
| format | No | "pattern" (default) or "list" | |
| to_bar | No | Only notes starting before this bar (1-based) | |
| from_bar | No | Only notes starting at or after this bar (1-based) |