mcp_opendaw_create_hemiola
Creates a hemiola rhythm pattern, such as 3:2 or 2:3, by superimposing primary and secondary note groups over a specified number of bars, resulting in a cross-rhythm illusion.
Instructions
Create a hemiola — 3:2 rhythmic displacement creating cross-rhythm illusion.
A hemiola superimposes a 3-note grouping over a 2-note grouping (or vice versa) within the same time span, creating the illusion of a different meter. The classic 3-against-2 pattern is fundamental to West African, Afro-Cuban, jazz, and minimalist music. Brahms, Bernstein, and Glass used it extensively.
The pattern string defines which beats get primary vs secondary emphasis: "3:2" — 3 primary notes in the time of 2 secondary (classic hemiola) "2:3" — 2 primary notes in the time of 3 secondary (inverse hemiola)
Creates notes on a single track: primary group uses primary_pitch, secondary group uses secondary_pitch. Both span the same total duration.
pattern: "3:2" (3 against 2) or "2:3" (2 against 3). bars: Total length in bars (1-4). Each bar = 4 beats. unit_index: AU index. track_index: Note track index. start_beat: Starting beat position. primary_pitch: MIDI pitch for primary group (default 60 = C4). secondary_pitch: MIDI pitch for secondary group (default 64 = E4). 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 hemiola ratio.
Example: create_hemiola(pattern="3:2", bars=2, primary_pitch=60, secondary_pitch=67)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | ||
| pattern | Yes | ||
| duration | No | ||
| start_beat | No | ||
| unit_index | No | ||
| track_index | No | ||
| primary_pitch | No | ||
| secondary_pitch | No | ||
| primary_velocity | No | ||
| secondary_velocity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |