Mod Archive Forums

Music Production => MilkyTracker => Tracking => MilkyTracker Community => Topic started by: ralphbluecoat on August 22, 2011, 02:47:27

Title: How are xi instruments made?
Post by: ralphbluecoat on August 22, 2011, 02:47:27
I want to build a script utility which will automatically read multiple audio files and then generate an xi instrument, automatically mapped.

Does anybody here have intimate knowledge the XI file structure? I've been opening them  up in hex editors, and I'm a little confused as to how sample the data is stored/compressed.

Thank you!
Title: Re: How are xi instruments made?
Post by: Saga Musix on August 22, 2011, 13:19:06
The instrument structure is identical to the structure in XM files (see f.e. http://aluigi.altervista.org/mymusic/xm.txt (http://aluigi.altervista.org/mymusic/xm.txt), section "Instruments"), with a very simple leading file header:

Code: [Select]
struct XIFILEHEADER
{
CHAR extxi[21]; // "Extended Instrument: "
CHAR name[23]; // Name, 0x1A
CHAR trkname[20]; // Tracker name, f.e. "FastTracker v2.00" in FT2's case
};
Title: Re: How are xi instruments made?
Post by: ralphbluecoat on August 22, 2011, 19:03:12
Thanks for the reference page! This is very helpful to read.
Title: Re: How are xi instruments made?
Post by: LokiClock on October 05, 2011, 11:28:00
This version contains important corrections and clarifications:

http://16-bits.org/xm/