Strudel → MIDI
strudel_to_midiConvert Strudel mini-notation patterns into MIDI note events. Supports sequences, subdivisions, rests, alternation, chords, polyphony, and euclidean rhythms.
Instructions
Convert a Strudel mini-notation pattern into MIDI note events. Supports sequences, [subdivisions], ~ rests, , *repeat, @elongation, [a,b] chords, {poly}%n, and euclid(p,s,rot). Returns note events with pitch and start/duration in beats, plus total length in beats.
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": {
"pattern": "<pattern>"
},
"name": "strudel_to_midi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | bars per cycle | |
| conv | No | Octave convention: strudel (c5=60) or scientific (c4=60) | strudel |
| cycles | No | ||
| pattern | Yes | e.g. "c5 [e5 g5]*2 ~ <a5 b5>" | |
| velocity | No | ||
| octaveOffset | No |