Midi Read
midi_readRead Standard MIDI files to inspect tempo, meter, markers, tracks, channels, note counts, or import selected notes into existing project tracks with bar offset, replace/add mode and quantization.
Instructions
Read a Standard MIDI File (.mid, from a DAW, a score program or the web). Without into, it lists what the
file holds: tempo and meter (and any changes), markers, and every track and channel with its note count, range
and bars. With into={: } it writes those notes into existing tracks (track_add first),
where is the track's name, '#', or 'ch<1-16>' (that channel across the file, e.g. 'ch10' for
drums). bar: where the file's bar 1 lands. mode='replace' clears the span the notes cover on each target first,
'add' merges. quantize: a grid in beats (0.25 = 16ths) the starts snap to; default keeps them as played.
Positions are read in beats, so a file at another tempo keeps its bars at this project's tempo (the reply says
when the tempos differ).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bar | No | ||
| file | Yes | ||
| into | No | ||
| mode | No | replace | |
| project | Yes | ||
| quantize | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |