Page 1 of 1

XM/MOD starting position

Posted: Tue Mar 07, 2006 2:45 pm
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...

Posted: Tue Mar 07, 2006 2:55 pm
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!

Posted: Tue Mar 07, 2006 3:47 pm
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.