XM/MOD starting position

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

XM/MOD starting position

Post by linflas »

If I use mp3/ogg/wav, I have a different file for each music theme ... which may mean a big RTC final file. If I want coherence in my dungeon musics, I will probably use the same instruments for all themes.
With XMs and MODs I can compose my own music (which is kinda cool) and optimize my final RTC file by using only one MOD/XM file for music and re-use the same samples for different themes.
MOD/XM file has 2 parts :
- samples bank = concatenation of wavs used for the music
- patterns and positions data
FMOD library can start playing a XM/MOD at the position you decided, 0 is default. So I would like to load the same music file in RTC editor and set a different starting position for each theme.

I hope i was clear...
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Presumably, it would need an end position as well?

Can you send me such an example XM/MOD file with some sample start / end positions so I can see what you mean and I'll have a play to see what's possible!
User avatar
linflas
My other avatar is gay
Posts: 2445
Joined: Tue Nov 04, 2003 9:58 pm
Location: Lille, France
Contact:

Post by linflas »

The end position isn't necessary because i can specify it by setting speed/bpm to zero (F00 command). FMOD detects it and freezes the song.
for music loop, there's also a "jump to position" command (DXX command).
see here : http://www.fmod.org/forum/viewtopic.php?p=18996

I pm you an example i made for a little reflexion game.
Post Reply