Actions

Difference between revisions of "X3I"

From Sonic Retro

(Made it clearer: X3I can contain 65535 instruments! X3V can contain 255 instruments! X3I can contain 65535 instruments! X3V can contain 255 instruments! X3I can contain 65535 instruments!)
(added note about real instrument limit)
Line 2: Line 2:
  
 
=File Structure=
 
=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); after that, the actual instrument table begins, in the following format:
+
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:
 
{|class="prettytable"
 
{|class="prettytable"
 
! Voice||Description length||Description
 
! Voice||Description length||Description
Line 14: Line 14:
  
 
[[Category:Data Formats]]<br><br>Oh, by the way, if you didn't get it by now, X3I can contain <blink><b><big><big>65535</big></big></b></blink> instruments!!!11!ones!1! X3V can contain only <small><small>255</small></small> instruments. I mention this again because it was too subtle to say that only 4 times throughout the article.
 
[[Category:Data Formats]]<br><br>Oh, by the way, if you didn't get it by now, X3I can contain <blink><b><big><big>65535</big></big></b></blink> instruments!!!11!ones!1! X3V can contain only <small><small>255</small></small> 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 <small>32766</small> instruments due to a limitation of Visual Basic.)

Revision as of 15:12, 5 September 2011

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.)