I am using loopable BGM for my game and I've noticed that in both Audacity and the RPG Maker Sound Test the music loops perfectly, seamlessly. However, when playing the music in the game itself, you can hear an annoying click in some of the tracks just when the loop starts. This happens with both tracks with and without intros that only play once.
I tried to use Audacity's metadata (loopstart and looplength) to check if it removes the noise in the game but it doesn't work! Why do they sound perfectly fine in Audacity and in the Sound Test but not in game? How can I solve this problem?
Is there any sort of “tail” on the track? Any sort of audio that goes past the LOOPLENGTH set in the metadata? I always end up chopping anything past the ending sample because I’ve noticed some oddities if I don’t despite setting the samples correctly in the metadata.
most likely the track isn't quite hitting the same note on tempo when it loops.
go to audacity, mark the length of the loop, and see if the beginning and end land on the same level of sample, preferably a zero cross.
if it goes from peak to valley, offset the mark a few samples so it goes from peak to peak or valley to valley.
jumping from one to the other makes that click.
A click or hiss usually means a note is being cut in half. So it probably loops seamlessly but the loop happens in the middle of a note. May need to recut the track?
After you put the metadata, were you exporting the music from Audacity?
Anyway, without actually knowing the music file itself, I can't be sure.
So I saw this thread when it was first posted and chose not to respond because diagnosing the issue can be tough and not enough information has been provided.
A click in the audio track can be from any number of reasons; from poor loops (which, just because the "blue waves" match - called waveforms by the way - doesn't mean it's perfectly looped, since audio is typically 44,100 samples in a single second, being off by a few millisends with the loop is skipping a substantial number of samples (which you can consider to be like the frames in a game - and when a game even skips 1 frame things feel a little bit jarring right?)
Sometimes things just don't loop well and so you may have to adjust the audio waveform for it to be more appropriate for looping. Deep bassy elements don't loop well and droning pads don't loop well. From my experience bass tends to cause the most noticeable clicks.
You say that it loops fine in the sound tester but not within the game, so this could be a technical reason; perhaps you have limited ram and perhaps the uncompressed sound files are too large when you game is attempting to decode the audio. Perhaps the clicking is caused by your sound devices audio buffer. Perhaps you have some sort of interaction or plugin with your game that interferes with how the game decodes the audio.
In order for us to better diagnose the problem, please provide recordings of your game & editor, including audio samples from the play test and audio test. Please make sure the recordings last more than the length of a single loop. Please share the original sound file being used in the game as well.
Guys, seriously; getting Goldwave solves all of these problems. I
have it myself and use it all the time, and I never have trouble with
this kind of thing; it plays stuff back in RPG Maker gameplay
PERFECTLY.
(Sorry if I sounded a bit intense there.)
Without knowing the true nature of the click, there's no saying if a particular software has developed a feature that is better suited to resolving it though. Audacity is free and well-supported so it's easy to recommend.
I've never had an issue with setting the metadata at the correct points in Audacity itself. Nearly every time I've gotten a click it's due to a physical attribute of the instrument or the envelope I'm using on it, but since I make my tracks I can just move the loop point somewhere that doesn't make a click.
If the click comes from something like that, OP's problem might be a bit more complex.