Music looping guide using tags

Handy guides on how to do things, written by users for users.

Moderators: GZDoom Developers, Raze Developers

Forum rules
Please don't start threads here asking for help. This forum is not for requesting guides, only for posting them. If you need help, the Editing forum is for you.

Music looping guide using tags

Postby Xeotroid » Sat Apr 18, 2015 4:34 pm

If you ever made music for your mod that isn't MIDI, you probably wondered how to make the end and beginning connect well to each other without a big silence, killing the action. This isn't a big deal for music that has a real finishing part or an ending, the problem is when the music needs to be looped.
WARNING: THIS IS SUPPORTED ONLY BY OGG VORBIS AND FLAC FORMATS, NOT MP3

What we will need:
  • A music track
  • Audacity and basic knowledge of working in it

THE WRONG WAY:
Spoiler:

So, how do we make the music loop seamlessly everywhere except the first few seconds? Very easily, using ZDoom's audio tags.

THE RIGHT WAY:
Spoiler:


I hope I helped you and that I made this understandable. Trying to formulate a guide is harder than I thought (k, begging for forgivenness is over)!
Last edited by Xeotroid on Sun Apr 19, 2015 8:57 am, edited 4 times in total.
User avatar
Xeotroid
 
Joined: 23 Jun 2012
Location: Czech Rep.

Re: Music looping guide using tags

Postby Nash » Sat Apr 18, 2015 4:48 pm

I need to try this. Have always wondered how to create loop points in non-tracker music.
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: Music looping guide using tags

Postby Gez » Sat Apr 18, 2015 4:56 pm

This lacks a wikilink to audio loop.
Gez
 
 
 
Joined: 06 Jul 2007

Re: Music looping guide using tags

Postby Xeotroid » Sun Apr 19, 2015 3:09 am

Gez wrote:This lacks a wikilink to audio loop.


Right, I forgot about that, thanks ;)
User avatar
Xeotroid
 
Joined: 23 Jun 2012
Location: Czech Rep.

Re: Music looping guide using tags

Postby Zanieon » Fri Apr 24, 2015 1:30 pm

Hmm i didn't saw this before but i have to say that
Actually i'm very professional on making those loops :)

Well i didn't used those tags on them, but make a intro and make a loop from a point isn't a prob for me
User avatar
Zanieon
A Tamer of The Dark
 
Joined: 13 Jan 2009
Location: Somewhere in the future
Discord: Zanieon#3177
Twitch ID: Zanieon
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD with Vulkan Support

Re: Music looping guide using tags

Postby XanderBFG » Sat Apr 04, 2020 9:56 pm

IT WORKS! I have searched many places on how to repeat my custom music in gzdoom and you saved my life.Thank you so much! :)
User avatar
XanderBFG
 
Joined: 20 Mar 2018
Location: Chile
Discord: ElAlexiticoGP#4396
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Music looping guide using tags

Postby fredistehboss » Mon Apr 13, 2020 9:43 pm

XanderBFG wrote:IT WORKS! I have searched many places on how to repeat my custom music in gzdoom and you saved my life.Thank you so much! :)


How does ZDoom know where to line up the music track? Am I missing something here? Is this just to make it closer to gapless or something?
fredistehboss
 
Joined: 11 Mar 2020
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Music looping guide using tags

Postby Gez » Tue Apr 14, 2020 3:56 am

fredistehboss wrote:How does ZDoom know where to line up the music track? Am I missing something here? Is this just to make it closer to gapless or something?


You're missing on reading the audio loop link.
Gez
 
 
 
Joined: 06 Jul 2007

Re: Music looping guide using tags

Postby fredistehboss » Fri Apr 17, 2020 3:04 pm

Gez wrote:
fredistehboss wrote:How does ZDoom know where to line up the music track? Am I missing something here? Is this just to make it closer to gapless or something?


You're missing on reading the audio loop link.


Okay so I read it, I'm just having a hard time understanding it. I see that you create "tags" to mark the times of the track.
But how it would "sound" for a song that isn't intended to loop? I'm trying to imagine it is all. When I have time to try it I will.
fredistehboss
 
Joined: 11 Mar 2020
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Music looping guide using tags

Postby wildweasel » Fri Apr 17, 2020 3:35 pm

You'd have to specify exactly where in the song you want the loop to start and end. This will, naturally, depend largely on the song itself, and not all songs will loop gracefully no matter what you do with them.
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 16 Jul 2003

Re: Music looping guide using tags

Postby Gez » Fri Apr 17, 2020 4:41 pm

fredistehboss wrote:Okay so I read it, I'm just having a hard time understanding it. I see that you create "tags" to mark the times of the track.
But how it would "sound" for a song that isn't intended to loop? I'm trying to imagine it is all. When I have time to try it I will.


This is just the way you tell the engine at which points the song loops. Of course, that means you have to find these points yourself -- the engine cannot possibly try to guess. Without such points, the behavior is to loop back to the start of the audio file once the end of the audio file is reached. And of course, if a song isn't intended to loop, it's possible that there isn't any point where a loop would sound good -- in that case, the best scenario is to allow the song to end and then to restart normally. Loop points are for songs that can be made to loop; don't expect miracles.
Gez
 
 
 
Joined: 06 Jul 2007


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest