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:
Parts
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
- Timing: every Set Tempo, time signature and key signature event, plus markers and SysEx, go into a conductor track in each part. The parts are as long as the original song, so they line up when you import them together.
- The part itself: by track, every event of that track (notes, controllers, program changes, pitch bend, lyrics); by channel, every channel message on that channel from any track.
- Names: each file is named after the original, the part number and its track name or General MIDI instrument, for example
song-02-channel-2-electric-bass-finger.mid.
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
- Practise one part: split, then play just that file in the MIDI player or render it with the MIDI to WAV converter.
- Load stems into a DAW, sampler or hardware that takes one part per file.
- Turn one part into sheet music with the MIDI to MusicXML converter.
- Keep everything in one file but in separate tracks instead: use the format 0 to format 1 converter.
The splitting code is the tested module split-core.mjs.