BFSEQ (File Format)

From MK8
Revision as of 20:01, 5 January 2018 by James Potkukelkka (Talk | contribs)

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

BFSEQ (Binary CaFe SEQuence) is a sub file format found in BFSAR files from games like Mario Kart 8. It corresponds to the music data represented in a MIDI-like file, but in binary. Commands that process changes in attributes such as sound generation and volume change over time are described on this kind of file. Since the sequence data is simply a set of commands, sounds are actually producing using bank data (stored in BFBNK sub files) that corresponds to the sound source data.

File Format

File Header

The file starts with a file header that is 0x40 bytes long.

Offset Type Description
0x00 String File magic. Always FSEQ in ASCII.
0x0E UInt32 Length of the file in bytes.
0x07 UInt16 Length of this header in bytes.
0x0E UInt16 Number of sections.
0x1B UInt32 Offset to DATA section.
0x1E UInt32 Length of DATA section.
0x26 UInt32 Offset to LABL section.
0x2A UInt32 Length of LABL section.

DATA

Offset Type Description
0x00 String Section magic. Always DATA in ASCII.
0x06 UInt32 Length of this section.

LABL

Offset Type Description
0x00 String Section magic. Always LABL in ASCII.
0x06 UInt32 Length of this section.

Tools

The following tools can handle BFSEQ files:

  • none