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.

loop points

i was just curious and thought id ask the experts.

Can you place custom coded loop points into an mp3 file type like you can with midi and wav files?

and if people dont know what i mean ill give an example.

if a midi has

intro - verse - chorus

it would normally cycle through all of them one after another.
but there is certain software that can program into the file and certain software that can read it so that it plays like the following :
intro - verse - chorus- repeat chorus -repeat chorus-
this is what they do with select songs in games like battle themes etc.

i was just wondering if you are able to do this with mp3s? and if so what software?

because all the software that can code this in is either for .wav or .midi which i really do not want to have to use because
midi is too low quality and wav is too high a file size.

any information at all would be handy :smile:
 
and it works the way wavosaur does for .wav?
as in you can export the loop points inside the mp3 so a external player that supports it will recognise them and continue to play the loop rather than the intro again?
 
Umm... I guess. Let me get this straight...

This file will only export midis. You need SynthFont or another program for making them mp3s.

This file will repeat from a repeat sign in any player.

This file will work in most players that support midis(unless you convert it to mp3/wav format).
 
weird. as far as i know, MP3s don't/can't do this.

OGG supports this, i believe. yeyinde made a thread about how to do it, it's likely in the tutorials sectino of the boards.

OGG is very similar too MP3, so maybe it'll work. we might be able to help more if you could tell us what you are trying to do with this, or why you're doing it. there might be possible alternatives.
 
Hmmmm. Its an interesting concept and I'm keen to see if this is possible. But it seems what you are trying to do is a funciton of a program that plays back midi scores and not a rendered sound file. But if there is a format that somehow does this I'd be very happy to learn about it :).


Have you tried a different appraoch? Like for example, I know many game engines have the abilty to wait for music to stop before playing the next peice. Why not use afew events to control the form of the music? It may be time consuming but it would certainly solve your space problem.
 
well there is a script for rpg maker xp which links the rgss audio module to the fmodex.dll.
Fmod can use loop points with nearly every audio format that is commen.
rpg maker xp can only use midi loop points and will not register the embedded loop points in any other audio file format (it basically just cant read the code that says loop here, in anything but midi files)

But with the fmod script and the fmodex.dll it now can.

basically it can be used the way many rpgs or many games have the background or battle music looped.
like seymours ambition in final fantasy 10 there is the weird intro that just has the main synth beat then goes on to play the the orchestra with the synth beat and just keeps repeating it so basically the music has loop points at around the chorus and bridge so it plays like the following until stopped.

intro-chorus-bridge-chorus-bridge-chorus-bridge
and the continues playing the chorus and bridge side by side until the battle ends.

its not really that confusing.

but anyway if ogg does support the embedding of loop points does anyone know any software?
 

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