Difference between revisions of "Mohawk MIDI"

From A look inside The Link @ wiki
Jump to: navigation, search
(documenting the rest of the format (it's really the standard MIDI format...))
m (The Header: oops!)
 
Line 11: Line 11:
  
 
*''mhwk_magic'' is the string 'MHWK'. It's equal to the [[Mohawk archive format#IFF header|Mohawk format signature]]!
 
*''mhwk_magic'' is the string 'MHWK'. It's equal to the [[Mohawk archive format#IFF header|Mohawk format signature]]!
*''size'' is the effective resource size, minus the ADPC chunk size, minus 2.
+
*''size'' is the effective resource size.
 
*''midi_magic'' is the string 'MIDI'.
 
*''midi_magic'' is the string 'MIDI'.
  

Latest revision as of 23:03, 17 September 2008

This is the Mohawk MIDI format. It resembles the Mohawk archive format and Mohawk Sounds format. And, it's just a wrapper around the standard MIDI format. It is in Big Endian order.

The Header

4 bytes mhwk_magic
unsigned long size
4 bytes midi_magic
  • mhwk_magic is the string 'MHWK'. It's equal to the Mohawk format signature!
  • size is the effective resource size.
  • midi_magic is the string 'MIDI'.

After this header come the chunks. Until now, 3 chunk types have been identified: 'MThd', 'Prg#' and 'MTrk'.

The MThd Chunk

See here for information on this chunk.

The Prg# Chunk

(MIDI Programs?)

unsigned long chunk_size
unsigned short u0
unsigned short u1
unsigned short u2

The MTrk Chunk

See here for information on this chunk.