I’ve just started moving my music loops from events to the music system, and some issues are coming up. There’s something that doesn’t really make sense to me: I’ve created two segments, the first one being a song’s intro and the second one the song’s loop. The first one is always transitioning to the second, of course, as transition mode I took "At segment end". From what I understand, this option should make the loop kick in the moment the intro ends. But instead, fmod is following the bpm and signature indications, and since I took out some silence at the beginning of the song, there’s a gap during the transition. I only realized that after exporting the song’s intro again, keeping the silence at the beginning, so bpm and signature would match. I don’t get that, shouldn’t fmod only consider bpm/signature when choosing the beat or bar transitioning option?
- bluesmornik asked 6 years ago
This isn’t probably the answer you want, but what you can do is calculate a bpm for the intro that allows FMOD to trigger the loop after the correct amount of time has elapsed for the intro. This is useful for music that has a variable tempo too. Assuming the intro may not conform to the bpm (due to the change in length), one formula to get an appropriate bpm is:
BPM = 60 * [sample rate] / [# of samples]
So if your intro segment is at sample rate of 44100 Hz and the intro segment is 200000 samples, you’ll end up with a bpm of 13.23. If you have more decimals, you can always multiply the result by 1000 (or 100, 10000 or 10) to give FMOD a more precise tempo (since Designer only accepts 2 decimals for the bpm).
The above bpm value is pretty useless for cross-fading between cues in a beat matched way, but if that’s not necessary, then it’ll give you good connections/loops.
Lastly, I’m not sure if Firelight has since improved this, but the one thing that can still give you unclean loops/connections is using codecs like mp3/mp2/celt. They sometimes yield bad connections/loops. I’ve been moving any segments that don’t loop or connect well to ADPCM banks (or wav if you can spare the space). ADPCM doesn’t sound as good as mp3/mp2/celt, but it may be a worthwhile trade-off.
- capybara answered 6 years ago
Please login first to submit.