mcp_opendaw_create_mordent
Add a mordent ornament to a MIDI track with configurable pitch, direction, and duration. Rapidly alternate between main and neighbor notes for classical ornamentation.
Instructions
Create a mordent — main note → neighbor → back. A classical ornament.
The mordent is one of the four essential baroque ornaments (trill, mordent, turn, appoggiatura). It's a rapid single alternation: play the main note briefly, flick to a neighbor note, then return to the main note — all within the space of one note duration. Think Bach two-part inventions, Mozart sonatas.
An upper mordent flicks UP (main → upper neighbor → main). A lower mordent flicks DOWN (main → lower neighbor → main). The neighbor note is very short — just a flicker.
main_pitch: The primary MIDI note (default 60 = C4). direction: "upper" (main→higher→main) or "lower" (main→lower→main). interval: Semitones to the neighbor note (default 2 = whole step). Upper: 1 = half step (diatonic), 2 = whole step. Lower: -1, -2 mirror. duration_beats: Total length of the mordent in beats (0.25-4, default 0.5 = one 8th). velocity: Base velocity 0-1 (default 0.85). unit_index: AU index with note track (-1 = find first AU with note tracks). track_index: Note track index within the AU. start_beat: Position in beats where the mordent begins.
Returns notes created, pitches used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interval | No | ||
| velocity | No | ||
| direction | No | upper | |
| main_pitch | No | ||
| start_beat | No | ||
| unit_index | No | ||
| track_index | No | ||
| duration_beats | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |