Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

How to make MP3 music loopable?

Is there a way to make mp3 music loopable? I have some awesome mp3s, but they fade-out at the end of the song, and I want to make it loopable. But I have no clue how to many any song loopable, with or without fade-out. Because the problem with mp3s is that it doesn't sound the same at two spots. Like the beginning may have a few more strings than at the end. I have a program that can fade music though, but I'm still unsure with this.

Does RMXP have some automatic loop system? Or is it even impossible to loop mp3s?

Thank you!
 
It really depends 0on how the song was written whether you can make it loop well or not.    RMXP has no function to do this.  One method I use if a song has a fade at the end is to use an mp3 splitter to chop out the fade, but you have to time it perfectly so it keeps the beat.  It most likely won't sound perfect though.  In my opinion for general maps, dungeons etc... a fade out can be fine and even add to the atmosphere, especially if you are using a BGS with it.  The only other option is to use an mp3 that is written to loop.  So stick, chop or discard I guess.
 
So RMXP doesn't put a little pause when restarting an mp3 and it can loop perfectly?

I think I'm starting to get an idea of how to do this. But there's still a question: music usually has a fade-in where more and more instruments kick in. But I'm not talking about this. I'm talking about the very short pause before a song starts. I mean, a song doesn't suddenly start in the middle, 'cause that is really ugly. The music just starts out of nothing, with a blurpy sound. But if I want it to loop, would I have to remove this? In other games the mp3 always fades in nicely (not really a fade in, but you know it doesn't suddenly start) and then loops perfectly. How is this done? Is there some way to put an intro in that doesn't loop, but only plays the first time?

Thxxx.~

Off-topic: Why did this get moved, lol. I want the music to loop in RMXP, not in general. xP
 
Yeah I didn't really see the need for this to be moved either - it is to with game development on rmxp... but anyway... I don't really know what you mean about a blurpy sound I'm afraid.  My honest advice would just be to let the music fade out.  If the silence on the is too long just cut some of the silence off.  This is where the benefits of having a composer for your game come in, they can write it specifically for games.

Essentially off the top of my head, you could have the intro as an ME and the rest of the repeating song as a BGM and play them both at once.  I'd assume the ME will override the BGM, then once it's done the BGM kicks in and goes on to repeat but that certainly isn't common practice.  Like I said, it works in other games due to how the song was made in the first place.  If a song is written with a slow fade at the end it's a pretty impossible task to then make it loop perfectly.
 
^

Hmm, thanks for the advice. ^-^ I'll probably keep with the short fade-out.

But with a blurp I mean like the "sound" below:

..ooOOOOOO

The .. is a short pause at the front of the mp3, then the oo a very short fade in when the instruments start (like 1/5th second) and then the OOOs is the real song. Wouldn't I have to remove the ..oo to make it loop perfectly? Yet other mp3s in games that I have opened do still have the ..oo when I listen to it in, say, Windows Media Player. Yet in the game I don't notice it and it just loops fine without a pause when the song restarts.

I'll read your post again in an hour or so, 'cause I gotta get to class asap. XD Thx!
 
get goldwave, edit the mp3 to you liking. its really easy to cut up sound files with, you can clip off that tiny little split second delay at th beginning. you might be able to crop the fade out off, depending on the song and if its gonna sound right.

also, why in your example windows media player, winamp etc have a delay is the program itself puts in a small delay between tracks, notice if you have a CD that has one song flow straight into the next track, when you play it on a media player on your computer it doesnt flow seamlessly to the next song.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top