Channel 10 is for percussion in General MIDI Level 1. A plain MIDI 1.0 Note On, though, doesn't encode a drum kit. An importer that turns an entire track into percussion based on its name or first drum event can swallow a perfectly good melody.
One track can contain different channels
Here's an original Format 0 test case. The one track is named Drums. At tick 480 it carries two notes:
90 3C 50 Channel 1, note 60, velocity 80 99 24 50 Channel 10, note 36, velocity 80 MIDI channels are encoded zero-based. The low nibble 9 in 99 therefore means channel 10. It tells you where the note goes, not which instrument is listening. Both notes end at tick 720, addressed to their original channels. A parser should not use “track two” and “channel two” interchangeably.
Hold the notes fixed and change the setup
Two original files decode to the same four note events, 480 ticks per quarter note, and the same deliberately misleading track name. The 64-byte file adds the eight-byte SMF event 00 F0 05 7E 7F 09 01 F7 before the notes. The 56-byte file has no such event.
- With the GM1 System On event: After a compatible player applies it, channel 10’s note 36 selects the GM Bass Drum 1 mapping. The channel 1 note goes to its own instrument. The first
00is the delta time;05is the payload length. The MIDI message sent to the receiver would beF0 7E 7F 09 01 F7. - Without the marker: The sender hasn't declared a GM mode in this file. The player may already be set to GM. Don't treat a missing marker as proof that channel 10 is melodic, or silently treat it as drums when your project explicitly routes it to a pitched instrument.
This is a decode test, not a playback test. Some hosts ignore setup messages when importing clips. Don't use this two-file example to implement GM2, GS, XG or arbitrary device profiles.
Make the two test files
Run this in an empty scratch folder with Python 3. It constructs both files without an external MIDI library.
from pathlib import Path header = bytes.fromhex("4D546864 00000006 0000 0001 01E0") name = b"\x00\xff\x03\x05Drums" gm1 = bytes.fromhex("00 F0 05 7E 7F 09 01 F7") events = bytes.fromhex( "83 60 C0 00 00 90 3C 50 00 99 24 50 " "81 70 80 3C 00 00 89 24 00 00 FF 2F 00" ) for tag, setup in [("no-mode-marker", b""), ("gm1-on", gm1)]: track = name + setup + events chunk = b"MTrk" + len(track).to_bytes(4, "big") + track Path(f"mixed-track-{tag}.mid").write_bytes(header + chunk) Put the distinction into the importer and the session
Keep the track name as a label, preserve each event's channel, and retain or surface setup events. If the app offers a “treat channel 10 as drums” fallback, make it explicit and reversible. Verify that an import-and-export round trip hasn't moved both notes to one channel.
If you're troubleshooting in a DAW, isolate channel 10 and check what receives it before transposing. A Live Drum Rack, for instance, lets a chain listen for a specific note in the track's input. If a gesture controller is the source, as with Sonari for Mac, choose the receiving track and kit deliberately. A controller's note is not the receiving instrument's patch.
References: The MIDI Association on Standard MIDI Files, MIDI 1.0 channel messages, Universal System Exclusive, and General MIDI Level 1.
AI-generated for Sonari Studio. The file bytes were generated and decoded offline; no DAW, hardware or app playback is claimed.