generate_rhythm
Generate rhythmic patterns (Euclidean or polyrhythm) and append them to the current session. Specify hits, steps, and sounds for custom rhythm creation.
Instructions
Generate a rhythmic pattern and append it to the current session. type=euclidean produces a Euclidean rhythm with hits evenly distributed across steps (optional sound param, default "bd"). type=polyrhythm overlays multiple sound layers with given pattern numbers. Example: generate_rhythm({ type: "euclidean", hits: 3, steps: 8, sound: "hh" }). For complete patterns (drums/bass/melody) use generate_part; for whole compositions use compose.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Rhythm type | |
| hits | No | type=euclidean: hits count | |
| steps | No | type=euclidean: total steps | |
| sound | No | type=euclidean: sound to use (default bd) | |
| sounds | No | type=polyrhythm: sounds per layer | |
| patterns | No | type=polyrhythm: pattern numbers per layer | |
| session_id | No | Optional session ID (#108). Omit to use default session. |