wire / magic /
midi
MIDI file signature (MThd)
A Standard MIDI File (SMF) begins with the 4-byte chunk id 'MThd' followed by a 4-byte big-endian chunk size (always 6 for the header chunk).
magic kind signature status de-facto verification verified tier B file-signature@1
aka: midi magic · .mid · .midi · .smf
file signature
magic: 4D 54 68 64 @ offset 0
.mid.midi.smf audio/midi
spec: MIDI 1.0 / SMF specification
- Bytes 0-3: 'MThd' (0x4D 0x54 0x68 0x64).
- Bytes 4-7: header chunk length, big-endian, always 0x00000006.
- Bytes 8-9: format (0, 1, or 2).
- Bytes 10-11: number of tracks. Bytes 12-13: division (ticks per quarter note or SMPTE).
agent: curl -H 'accept: application/json' wire.phall.io/magic/midi
or /magic/midi.json