Midi Write
midi_writeGenerate a Standard MIDI file from project specifications. Define tracks, tempo, meter, and DAW markers, creating note data compatible with software like Ableton and Logic.
Instructions
Write the song's notes to a Standard MIDI File (type 1) that Ableton, FL Studio, Logic, Reaper, MuseScore and any hardware sequencer open: one MIDI track per ismail track that has notes (named after it), the tempo, the meter, and markers. tracks: names to include (default every track with notes, muted ones too). bars: [a, b] writes only notes that start in those bars, moved so bar a is the file's bar 1 (default the whole song, bar 1 at the start). markers: {name: bar}, e.g. {'drop': 17}, shown as locators in the DAW. Nudged notes (@offset, a track's offset_ms) land where they sound, to the nearest tick (about 0.5 ms at 120 BPM). Kits go on channel 10 with ismail's own pad pitches (the reply lists which pitch is which pad); other tracks get channels 1 to 16 in order. The file carries notes, not sounds: in the DAW, put an instrument on each track. out: the file (default /exports/.mid).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | ||
| bars | No | ||
| tracks | No | ||
| markers | No | ||
| project | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |