mcp_opendaw_create_polyrhythm
Produces a polyrhythm by simultaneously playing two streams with different subdivision counts on a single track. Configure ratio, pitches, and velocity.
Instructions
Create a polyrhythm — two rhythmic streams with different subdivision counts playing simultaneously.
A polyrhythm divides the same time span into two different numbers of equal parts. The classic 3:4 means 3 notes in the time of 4 — creating cross-rhythms used in jazz, electronic, African, and progressive music.
Creates notes on a single track: primary stream uses primary_pitch, secondary uses secondary_pitch. Both streams span the same total duration (bars × 4 beats).
primary_count: Number of primary subdivisions (2-16). E.g., 3 in a 3:4 polyrhythm. secondary_count: Number of secondary subdivisions (2-16). E.g., 4 in a 3:4 polyrhythm. bars: Total length in bars (1-8). unit_index: AU index. track_index: Note track index. start_beat: Starting beat position. primary_pitch: MIDI pitch for primary stream (default 60 = C4). secondary_pitch: MIDI pitch for secondary stream (default 72 = C5, one octave up). primary_velocity: Velocity for primary notes 0-1. secondary_velocity: Velocity for secondary notes 0-1. duration: Note duration in beats.
Returns total notes created and polyrhythm ratio.
Common polyrhythms: 3:4 — classic cross-rhythm (jazz, electronic) 2:3 — hemiola (African, Latin) 3:5 — complex polyrhythm (progressive) 4:5 — dense polyrhythm (modern jazz) 7:8 — extreme polyrhythm (math rock)
Example: create_polyrhythm(primary_count=3, secondary_count=4, bars=2, primary_pitch=60, secondary_pitch=67)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | ||
| duration | No | ||
| start_beat | No | ||
| unit_index | No | ||
| track_index | No | ||
| primary_count | Yes | ||
| primary_pitch | No | ||
| secondary_count | Yes | ||
| secondary_pitch | No | ||
| primary_velocity | No | ||
| secondary_velocity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |