Page 1 of 1

Looping Music from a Specific Point

Posted: Tue Jul 07, 2020 9:13 am
by DrMekar
Hi,

though I had a Question regarding Music Looping:

Would be possible to Loop a specific Part of a single Song, after the Intro of said Song until
a Event gets activated that ends the Loop?

For Example, the Song I want to Loop is called "Boss - Gore.mp3". The Intro goes from 0:00 to 0:09, after which
the Part I'd like to loop begins at 0:10 going until 0:18, after which the Ending Section comes from 0:19 to 0:26, after
which the Song ends and should not repeat.

I could do this with simple Lua, though I'd like to try out some New Things.

Here's the Song for reference: https://www.mediafire.com/file/axi4ima1 ... e.mp3/file

Thanks in Advance :)

Re: Looping Music from a Specific Point

Posted: Tue Jul 07, 2020 9:34 am
by Hoeloe
This can be done with meta tags in the music file. This page explains how: https://wohlsoft.ru/pgewiki/How_To:_Looping_music_files

Re: Looping Music from a Specific Point

Posted: Tue Jul 07, 2020 10:11 am
by DrMekar
Hoeloe wrote:
Tue Jul 07, 2020 9:34 am
This can be done with meta tags in the music file. This page explains how: https://wohlsoft.ru/pgewiki/How_To:_Looping_music_files
Okay, Thank You, so I meant doing a Loop with Lua from a single MP3 and if this
would be possible.

Re: Looping Music from a Specific Point

Posted: Tue Jul 07, 2020 10:32 am
by Hoeloe
Uhh.... That is exactly what this explains???

You can't do it with MP3 files, because they don't support it, but you don't need Lua for this. You just fill in the metadata and SMBX will loop the music from the point you specify. It'll play the intro the first time, and then loop back to the marked "LOOPSTART" when it hits the end of the loop.

Re: Looping Music from a Specific Point

Posted: Tue Jul 07, 2020 10:43 am
by DrMekar
Hoeloe wrote:
Tue Jul 07, 2020 10:32 am
Uhh.... That is exactly what this explains???

You can't do it with MP3 files, because they don't support it, but you don't need Lua for this. You just fill in the metadata and SMBX will loop the music from the point you specify. It'll play the intro the first time, and then loop back to the marked "LOOPSTART" when it hits the end of the loop.
Oh.. then just Thanks.