midicn 中文

Merging and Splitting MIDI

Merging loses track names and channel assignments, so split by channel before rebuilding tracks.

1 min read0 characters条目MIDIUpdated 2026-10-31

MIDItrackschannelsediting

Merge the two piano tracks into one, split them again, and the sustain pedal is often a single curve while one hand has lost its place.

What a merge loses

Notes, lengths and velocities survive. Track names, channel assignments, ports and controller ownership do not. If two tracks that used separate channels both land on channel 1, their program changes overwrite each other and only the last one applies. Drums make it obvious: move a drum part off the percussion channel and the kit turns into a row of pitches.

Tracks, channels, ports

A track is a container in the file, a channel is the four-bit address inside a message, and a port is a virtual cable between programs. One track can carry several channels, and one channel can span tracks. Merging usually works by track, while splitting usually works by channel, which is exactly where information disappears.

IdeaScopeOn mergeOn split
TrackAny number per fileNames and order collapseRename afterwards
ChannelSixteen per portSame number overwritesSplit by channel first
PortVirtual cableOften ignoredHandle each port separately
ControllerBound to a channelCC follows one channel onlyCopy before splitting

When to merge

Multiple drum microphones, octave doublings and comped takes all belong on one track. After merging, check channel numbers, the first program change and the position of the CC data. If performance detail matters, duplicate before merging and keep the original for comparison. Confirm the track no longer needs separate editing before merging it.

Splitting without loss

Split by channel first, then by pitch. Before splitting, copy sustain, expression and pitch bend onto every new track, then confirm each one starts with the right program. Rename everything instead of leaving Track 1 copy in place. A format 0 file has one track, so splitting means pulling channels out one by one and saving the result as format 1.

Failure modes

Two tracks land on the same channel number, so notes pile up and velocities scramble. A drum track merges with a melody and the keys fall outside the drum map. Only notes are split, so the pedal stays behind on the original track. Track names repeat and the mixer no longer shows which instrument is which. Save a copy before merging; guessing afterwards costs more time.

Listen in the library

raymond1206 chestnutC11:49Sixteen named channels covering piano, guitars, bass, trumpet and stringsDetailssailors battle midi theme 9C10:58A format 0 file with five channels and 1081 notes in one trackDetailsSymphony No.40 in G minor K.550C15:42Mozart's Fortieth Symphony, eleven tracks against fifteen channels, with more channels than tracksDetailsConcerto for 3 Harpsichords in D minor BWV 1063C19:05Bach's triple harpsichord concerto, ten tracks collapsed onto five channelsDetails

All tracks from midicn-lib — inline badge is the license tier (C1 commercial / C2 non-commercial / C3 study only).

Along the same line

Sources

  • MIDI 1.0 Detailed Specification, MMA, 通道消息与轨道块的定义
  • Apple Logic Pro User Guide, MIDI 编辑与合并操作
  • Ableton Live Reference Manual, MIDI 轨道与片段