mcp_opendaw_apply_velocity_pattern
Apply a repeating velocity accent pattern to MIDI notes to create groove and dynamic intensity layers. Use patterns like strong-weak-medium-weak for backbeat emphasis or syncopation.
Instructions
Apply a cyclic velocity pattern to existing notes in a region.
The producer's accent pattern tool. Instead of a linear ramp (crescendo), this applies a repeating velocity pattern across notes — the foundation of groove. Examples: strong-weak-medium-weak (backbeat emphasis), staggered accents for syncopation, or dynamic intensity layers.
unit_index: AU index. track_index: Track index. pattern: JSON array of velocity multipliers 0.0-1.0. Cycled across notes in order of position. Example: [1.0, 0.5, 0.7, 0.5] = strong-weak-medium-weak. region_index: Region index (-1 = first region). mode: "cycle" (repeat pattern from start, default) or "stretch" (distribute pattern evenly across all notes — good for 2-note patterns on 16 notes). base_velocity: Base velocity 0-1 that multipliers are applied to (default 0.8). Final velocity = base_velocity * pattern[i % len].
Returns notes modified, pattern applied, and velocity preview.
Examples: apply_velocity_pattern(unit_index=0, track_index=0, pattern="[1.0, 0.5, 0.7, 0.5]") -> 4-note accent cycle: strong-weak-medium-weak on every group of 4 notes apply_velocity_pattern(unit_index=0, track_index=0, pattern="[1.0, 0.3]", base_velocity=0.9) -> Alternating strong/weak at 0.9 and 0.27 apply_velocity_pattern(unit_index=1, track_index=0, pattern="[0.8, 0.4, 0.6, 0.4, 0.9, 0.4, 0.7, 0.4]", mode="stretch") -> 8-note pattern stretched across all notes in region
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | cycle | |
| pattern | Yes | ||
| unit_index | Yes | ||
| track_index | Yes | ||
| region_index | No | ||
| base_velocity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |