Mohawk MIDI

From A look inside The Link @ wiki
Revision as of 21:23, 30 August 2008 by Clone2727 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is the Mohawk MIDI format.

It resembles the Mohawk archive format and Mohawk Sounds format. This is a work in progress and not everything is known about it yet. 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, minus the ADPC chunk size, minus 2.
  • 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

(MIDI Header?)

unsigned long chunk_size
unsigned long u0
unsigned short u1

The Prg# Chunk

(MIDI Programs?)

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

The MTrk Chunk

(MIDI Track?)

unsigned long chunk_size

Following this, it's unknown. It looks like it two shorts followed by a byte (string_length) and then string_length + 1 bytes that form a string. Here are some string examples:

  • "Loop start"
  • "Setup end"
  • "Loop end"
  • "Glowing.eff"
    • Looks like a filename, but the file doesn't exist!
  • "Ac bass"