MIDI → Strudel
midi_to_strudelConvert MIDI note events into Strudel mini-notation patterns, quantized to a step grid, forming chords for simultaneous notes, rests for gaps, and elongation for held notes.
Instructions
Convert MIDI note events (pitch + start/duration in beats) into Strudel mini-notation text, quantized to a step grid. Simultaneous notes become [a,b] chords; gaps become ~ rests; held notes use @ elongation.
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": {
"notes": "<notes>"
},
"name": "midi_to_strudel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | ||
| conv | No | Octave convention: strudel (c5=60) or scientific (c4=60) | strudel |
| grid | No | steps per bar | |
| notes | Yes | note events | |
| octaveOffset | No |