mcp_opendaw_expand_intervals
Expand or compress melodic intervals in a note track by a factor to widen or narrow the melody, with anchor and scale snapping options for motivic development.
Instructions
Expand or compress melodic intervals by a factor.
Multiplies the interval between each consecutive pair of notes by
factor. Values >1 widen the melody (small steps become leaps),
values <1 narrow it (leaps become steps). The first note's pitch
is kept as anchor (or centered around the mean pitch).
This is a fundamental transformation in motivic development:
factor=2.0: seconds become thirds, thirds become fifths
factor=0.5: thirds become seconds, fifths become thirds
factor=1.5: gentle expansion, more expressive contour
Args: unit_index: Audio unit index track_index: Note track index region_index: Region index (-1 = first region) factor: Interval multiplier (0.25-4.0). 1.0=no change, 2.0=double all intervals, 0.5=halve all intervals. anchor: Anchor point — "first" = keep first note pitch, expand from there, "center" = keep mean pitch, expand symmetrically, "last" = keep last note pitch, expand backwards. snap_to_scale: Scale name for snapping results ("major", "minor", "dorian", "phrygian", "lydian", "mixolydian", "locrian", "harmonic_minor", "melodic_minor", "" = no snapping, chromatic result). root: Root note for scale snapping (C, C#, D, ... B).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | C | |
| anchor | No | first | |
| factor | No | ||
| unit_index | Yes | ||
| track_index | Yes | ||
| region_index | No | ||
| snap_to_scale | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |