Actions

X3I

From Sonic Retro

Revision as of 13:00, 10 April 2018 by Hivebrain (talk | contribs) (Text replacement - "Oerg866" to "Oerg866")

X3I is a new instrument bank format developed by Oerg866 for use in his xm3smps/oerg music conversion tool. It is the successor to X3V. It can contain up to 65535 YM2612 (X3V can just hold 255) instruments formatted according to the SMPS specifications; additionally, it can store a description for each instrument.

File Structure

The internal structure of an X3I instrument bank is simple. The first three bytes spell "X3I", the next two bytes specify how many instruments there are in the bank (0 to 65535, Big Endian format); after that, the actual instrument table begins, in the following format:

Voice Description length Description
25 bytes
1 byte
0 to 255 bytes

Note: The X3I format was created to eliminate the limit of just 255 instruments.

Opposed to YMX files, which store instruments in the format used by Sonic 2, X3I banks store instruments in the format used by all the other Sonic games.

Oh, by the way, if you didn't get it by now, X3I can contain <blink>65535</blink> instruments!!!11!ones!1! X3V can contain only 255 instruments. I mention this again because it was too subtle to say that only 4 times throughout the article. (What a pity that xm3smps/oerg can only import a maximum of 32766 instruments due to a limitation of Visual Basic.)