export_midi
Exports the current Strudel pattern to a MIDI file by parsing note(), n(), and chord() functions, with optional tempo, duration, filename, and base64 output settings.
Instructions
Export current pattern to MIDI file. Parses note(), n(), and chord() functions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Tempo in BPM (default: the pattern's own tempo, or 120 if it declares none) | |
| format | No | Output format: file or base64 (default: base64) | |
| duration | No | Export duration in bars (default: 4) | |
| filename | No | Output filename (optional, default: pattern.mid) | |
| session_id | No | Optional session ID (#108). Routes the capture to the named session, which has its own recorder — concurrent captures across sessions are safe (#180). |