export_midi
Exports the current Strudel pattern to a MIDI file, supporting note, n, and chord functions. Specify filename, duration, tempo, 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) |