write_euclidean
Generates Euclidean rhythms as layered notes in a Session clip, distributing pulses evenly across steps and pitches to create polyrhythmic drum patterns.
Instructions
Euclidean rhythms (pulses spread as evenly as possible over steps) into a Session clip. layers: [{"pitch": 36, "pulses": 4, "steps": 16}, {"pitch": 42, "pulses": 7, "steps": 16, "rotation": 2}, {"pitch": 37, "pulses": 3, "steps": 8}] — different step counts make polyrhythms. Classics: 3/8 tresillo, 5/8 cinquillo, 7/16 samba, 5/16 bossa. Pitches are Drum Rack pads (36 kick, 38 snare, 42 hat).
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_index": "<track_index>",
"clip_index": "<clip_index>",
"layers": "<layers>"
},
"name": "write_euclidean"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | ||
| layers | Yes | ||
| velocity | No | ||
| clip_index | Yes | ||
| track_index | Yes | ||
| steps_per_beat | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |