Looping Music from a Specific Point

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

DrMekar
Eerie
Eerie
Posts: 781
Joined: Sat Apr 08, 2017 7:16 am
Flair: CUSTOM CHARACTER CREATOR
Contact:

Looping Music from a Specific Point

Postby DrMekar » Tue Jul 07, 2020 9:13 am

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 :)

Hoeloe
Phanto
Phanto
Posts: 1465
Joined: Sat Oct 03, 2015 6:18 pm
Flair: The Codehaus Girl
Pronouns: she/her

Re: Looping Music from a Specific Point

Postby Hoeloe » 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

DrMekar
Eerie
Eerie
Posts: 781
Joined: Sat Apr 08, 2017 7:16 am
Flair: CUSTOM CHARACTER CREATOR
Contact:

Re: Looping Music from a Specific Point

Postby DrMekar » Tue Jul 07, 2020 10:11 am

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.

Hoeloe
Phanto
Phanto
Posts: 1465
Joined: Sat Oct 03, 2015 6:18 pm
Flair: The Codehaus Girl
Pronouns: she/her

Re: Looping Music from a Specific Point

Postby Hoeloe » 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.

DrMekar
Eerie
Eerie
Posts: 781
Joined: Sat Apr 08, 2017 7:16 am
Flair: CUSTOM CHARACTER CREATOR
Contact:

Re: Looping Music from a Specific Point

Postby DrMekar » Tue Jul 07, 2020 10:43 am

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.


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari