compose_export_midi
Export note sequences to a Type-1 MIDI file for FL Studio. Verify tracks and events; set overwrite=true to replace an existing file without altering the FL project.
Instructions
Write note sequences to a standard Type-1 MIDI file and verify it.
Writes a local file only; the FL project is unchanged. Re-opens and parses
the file to verify its digest, tracks, and events. Refuses to replace an
existing file unless overwrite=true. The user can drag the file into FL;
use piano_roll_write_notes to put notes in the open project instead.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ppq | No | Ticks per quarter note. | |
| path | Yes | Absolute .mid or .midi output path whose folder already exists. | |
| tracks | Yes | One entry per MIDI track: name, MIDI channel, and notes in beats. | |
| numerator | No | Time-signature numerator. | |
| overwrite | No | Allow atomic replacement of an existing file. | |
| tempo_bpm | No | Tempo recorded in the sequence, in BPM. | |
| denominator | No | Time-signature denominator. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ppq | Yes | ||
| path | Yes | ||
| sha256 | Yes | ||
| verified | Yes | ||
| tempo_bpm | Yes | ||
| byte_count | Yes | ||
| note_count | Yes | ||
| exported_at | Yes | ||
| midi_format | No | ||
| track_count | Yes | ||
| schema_version | No | 1.0 | |
| header_verified | Yes | ||
| readback_sha256 | Yes | ||
| atomic_replace_used | No | ||
| musical_track_count | Yes | ||
| note_events_verified | Yes | ||
| overwritten_existing_file | Yes |