export_midi
Render all project layers into a multi-track MIDI file. Returns beat/bar loop metadata for engine loop point configuration.
Instructions
Render all project layers into a single multi-track .mid file. Call last, after all add_layer calls. Returns loop metadata (beats and bars) for configuring loop points in the engine (Godot/Unity/ FMOD/Wwise), since MIDI does not store that natively.
Default destination_dir is assets/midi/ (or NOBU_MIDI_DIR).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_name | Yes | ||
| destination_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |