mcp_opendaw_export_midi
Export a note region's notes as a standard MIDI (.mid) file. Provide filename, audio unit, track, and region indexes to save the file.
Instructions
Export a note region's notes as a standard MIDI file (.mid).
Uses @opendaw/lib-midi MidiFileEncoder — converts note events to MIDI with timeDivision=96 (PPQN.Quarter=960 → 96 ticks per quarter).
filename: Output filename (without extension). unit_index: Audio unit index (-1 = search all AUs for note tracks). track_index: Note track index within the AU. region_index: Region to export (0-based).
Returns the saved file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| unit_index | Yes | ||
| track_index | Yes | ||
| region_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |