export_midi
Export a live-coded pattern to a MIDI file, supporting note(), n(), and chord() functions. Specify filename, duration, bpm, and output format.
Instructions
Export current pattern to MIDI file. Parses note(), n(), and chord() functions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Output filename (optional, default: pattern.mid) | |
| duration | No | Export duration in bars (default: 4) | |
| bpm | No | Tempo in BPM (default: 120) | |
| format | No | Output format: file or base64 (default: base64) | |
| session_id | No | Optional session ID (#108). Routes page reference to the named session. Note: AudioCaptureService is currently server-wide — concurrent captures across sessions will conflict. |