mcp_opendaw_apply_swing
Apply swing feel to MIDI notes while preserving velocity and duration. Shift odd grid positions later for a triplet/shuffle groove with adjustable depth.
Instructions
Apply swing feel to existing notes without changing velocity or duration.
Swing shifts every other grid position later, creating a triplet/shuffle feel. Unlike humanize_notes (which couples swing with random velocity/timing changes), this tool applies pure swing — deterministic, no randomness, reversible.
unit_index: AU index (-1 = all AUs). track_index: Note track index (-1 = all note tracks on the AU). swing_amount: Swing depth 0-1 (0 = straight, 0.5 = light swing, 1.0 = full triplet). 0.55-0.66 = classic hip-hop/lofi swing. grid: Grid to swing against — "16th" (default, shifts odd 16ths) or "8th" (shifts odd 8ths).
Returns per-track note counts shifted.
Example: apply_swing(unit_index=0, track_index=0, swing_amount=0.58, grid="16th")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | No | 16th | |
| unit_index | No | ||
| track_index | No | ||
| swing_amount | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |