Note Local

Does one MIDI track mean one instrument?

No. A track is a file container, a MIDI channel routes messages, and a program change requests a patch. One track can carry multiple channels; multiple tracks can use the same channel and program. After an MP3-to-MIDI conversion, inspect the actual events before treating a track count as a count of instruments recovered from the recording.

Convert a short recording · Download the complete event inventory

Our own six-note fixture, packaged three ways

On 12 November 2026 we wrote three synthetic MIDI files containing the same six pitches, starts, durations and velocities. These are deliberately authored test files, not fresh audio conversions, outputs from competing services or results of importing into a DAW. The narrow question is whether track counts, channel assignments and requested programs describe the same thing.

The low part contains pitches 48, 50 and 52, starting at 0, 500 and 1,000 ms. The high part contains 72, 74 and 76, starting at 300, 800 and 1,300 ms. Every note lasts 250 ms and has raw velocity 90. The common time base is 480 ticks per quarter note at 120 BPM: 480 ticks last 500 ms, 288 ticks last 300 ms and 240 ticks last 250 ms.

We changed the packaging and routing, then reopened every file. Our custom writer produces actual MIDI bytes; midi-file 1.2.4 reads the raw chunks and messages, while @tonejs/midi 2.0.28 reads the musical note events. The script compares every decoded pitch, tick position, duration and velocity with the declared six-note reference and stops on a mismatch.

Measured raw file inventory; channels shown as 1–16, program values as raw 0–127
DownloadSMF typeRaw MTrk chunksNote-bearing chunksNote channelsProgram valuesNote-ons
A: one track, two channels0111, 20, 406
B: two parts, one channel132106
C: two parts, two channels1321, 20, 406
Three synthetic files retain six notes but have different raw track and channel inventories
Measured container and message counts. The boxes do not represent detected performers.

A: one raw track can carry two channel assignments

File A has one MTrk chunk and uses SMF type 0. In that same chunk, the low notes carry raw channel 0 and the high notes carry raw channel 1, conventionally displayed as channels 1 and 2. At tick 0 we wrote program value 0 on the first channel and 40 on the second. The raw event inventory therefore contains two channel/program assignments inside one physical track chunk.

That is a concrete counterexample to counting one raw track as one requested sound. It does not show which instruments were played in an original recording: no recording was analyzed. The program values were chosen by us. They request patches from a receiving sound system; the exact playback also depends on its routing and sound configuration. We did not render or compare that playback.

B: two musical parts need not request two sounds

File B is type 1 and has three raw chunks. Chunk 0 contains only the tempo event and end-of-track marker. Chunk 1 contains the low part, and chunk 2 contains the high part. Only two chunks contain note-ons. Counting all three as three instruments would count a tempo-only container as a performer.

Both note-bearing chunks use raw channel 0, and both request program value 0 at tick 0. There are two separate note containers but only one note channel and one distinct program value in our file. The repeated program changes agree; we did not create conflicting patch requests. Within a single receiving device's channel routing, separate source chunks alone do not establish independent sound assignments. A DAW can apply its own import and routing behavior, which this test does not measure.

C: separate containers and separate routing

File C keeps B's three-chunk layout, including the tempo-only first chunk, but assigns the high part to raw channel 1 with program value 40. Its counts are three raw chunks, two note-bearing chunks, two note channels and two distinct program values. The six pitches and their timing, lengths and velocities still match A and B exactly.

The conclusion is about those specified fields, not identical audio. B requests one program value; A and C request two. Without rendering under a declared sound setup, we do not claim that all three files sound the same.

Why a parser can report two tracks for the one-track file

There is one more reproducible observation: @tonejs/midi 2.0.28 reports two note-bearing track objects for each of A, B and C. For A, that normalized count is 2 even though the raw MIDI parser and file header show only 1 track chunk. For B and C the normalized note-bearing count is 2, while the physical chunk count is 3.

Those are measurements of this library version on these particular files, not a promise about every parser. Label a report field precisely: raw chunks, chunks containing note-ons or normalized note-track objects. The full JSON preserves both representations so a reader can reproduce the discrepancy instead of trusting an unlabeled total.

Credited public reference material

The MIDI Association's Standard MIDI Files overview describes time-stamped streams, track structures and descriptive metadata. Its message summary identifies channel-voice messages and Program Change. Mido's file documentation distinguishes a single-track type 0 file from synchronous type 1 tracks. These are public format facts, credited here rather than claimed as exclusive findings.

Current converter pages discuss a different question: what musical parts their transcription workflow produces. Jukeblocks describes detected parts on named tracks with instruments; Songscription describes hand splitting and separate instrument parts; AI-MIDI describes a multi-instrument output with separate parts. These are their published descriptions, not conversion results we obtained. The general idea of separate parts is already public. Our new material is the three downloadable inventories and the exact raw-versus-normalized parser observation.

Check an actual conversion without guessing

  1. Distinguish physical file chunks from musical parts. Exclude tempo-only chunks when reporting note-bearing tracks, but keep their tempo information.
  2. List channels on the note events and program changes on those channels. State whether your numbering is raw 0–15 or displayed 1–16.
  3. Check whether your parser has normalized or split the data. A track count without its definition is ambiguous, as file A demonstrates.
  4. If the export contains one undifferentiated note stream, assigning more tracks or programs is arrangement work. It does not, by itself, recover the original performers from the audio.

Downloads and reproduction

Download all three files from the table, the complete JSON inventory and the generation and verification script. The JSON includes raw per-track note-on records, program changes, decoded musical events, hashes and the parser versions. Run the script with Node.js and the two recorded parser package versions installed beside it. No original audio, external account or conversion service is required for this fixture.

Does adding a program change separate instruments from MP3 audio?

No. Our program values were authored in synthetic files. Changing a playback request is not evidence of audio source separation.

Why does the type 1 example have three chunks for two parts?

One chunk is tempo-only. The other two contain notes. The inventory reports both counts rather than calling the tempo chunk an instrument.

Was FL Studio, Ableton or another DAW tested?

No. This is a file-writing and parser experiment. It does not claim a particular DAW's import behavior.