import_midi
Import a MIDI file to replace the open song, optionally setting pattern size or discarding unsaved changes; complex timing may not survive.
Instructions
Replaces the open song with one imported from a MIDI file. Bosca is a step sequencer, so complex timing may not survive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .mid file. | |
| pattern_size | No | Steps per pattern. 0 or absent detects it from the file. | |
| discard_changes | No | Must be true to replace a song with unsaved changes. |