Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1]   Go Down

Author Topic: How are xi instruments made?  (Read 6930 times)

0 Members and 1 Guest are viewing this topic.

ralphbluecoat

  • New User
  • Offline Offline
  • Posts: 3
    • View Profile
How are xi instruments made?
« 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!
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: How are xi instruments made?
« Reply #1 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, 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
};
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

ralphbluecoat

  • New User
  • Offline Offline
  • Posts: 3
    • View Profile
Re: How are xi instruments made?
« Reply #2 on: August 22, 2011, 19:03:12 »

Thanks for the reference page! This is very helpful to read.
Logged

LokiClock

  • New User
  • Offline Offline
  • Posts: 21
    • View Profile
    • Loki Clock's Inflammatory Internet Homepage
Re: How are xi instruments made?
« Reply #3 on: October 05, 2011, 11:28:00 »

This version contains important corrections and clarifications:

http://16-bits.org/xm/
Logged
Pages: [1]   Go Up