Skip to main content
A .mid file read as tokens that cover every byte of it: the header chunk, every later chunk in file order, and any bytes after the last chunk. Every offset indexes into data. The header, the chunks and the trailing bytes tile the file in that order. An unedited file serializes back byte for byte, and a changed track chunk can be re-encoded on its own while every other chunk is copied.

Properties