Music Software Development

MIDI track splitter

Save each instrument of a MIDI file as a separate file: one per track, or one per MIDI channel. Every part keeps the song’s tempo map, time and key signatures, so it plays at the right speed and lines up with the others when you import them together. Files are split on your device and never uploaded.

Splitter

Or drag a file onto this box, or try a sample:

Track or channel?

Tracks are how a DAW or notation program organised the file when it was exported; a format 1 file usually has one track per instrument, plus a first “conductor” track with only tempo and time signatures (which is not offered as a part, because it has no notes). Channels are how the notes are addressed to instruments: 16 per file, with channel 10 reserved for drums in General MIDI. A format 0 file has a single track with every channel mixed in, so split it by channel. If one track holds several channels, splitting by channel separates them too. The MIDI file analyzer shows which tracks use which channels.

What each part keeps

Each part is a format 1 file with two tracks. The ZIP stores the files uncompressed, which keeps it simple and quick to open. Format 2 files are not split, because each of their tracks is already a separate pattern.

Common uses

The splitting code is the tested module split-core.mjs.