mcp_opendaw_invert_notes
Invert melody notes around a pitch axis, reflecting each pitch to create a mirrored tonal inversion.
Instructions
Invert melody around a pitch axis — mirror reflection.
Each note's pitch is reflected around the axis: newPitch = 2*axis - oldPitch. Example: with axis=60 (C4), C4(60)→C4(60), D4(62)→Bb3(58), E4(64)→Ab3(56).
unit_index: AU index. track_index: Note track index. region_index: Region index (-1 = all regions on the track). axis: Pivot pitch for inversion (default 60 = C4). Notes equidistant from axis on opposite sides swap. Use the first note's pitch for tonal inversion.
Returns count of notes inverted and notes skipped (out of MIDI range).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | No | ||
| unit_index | Yes | ||
| track_index | Yes | ||
| region_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |