'Pop' noise when looping [SOLVED]

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
OurJud
Posts: 72
Joined: Thu Nov 24, 2016 12:23 am
Operating System: Windows 7

'Pop' noise when looping [SOLVED]

Post by OurJud » Thu Nov 24, 2016 12:31 am

W7 / 2.1.1 / ZIP

Hi everyone.

Not sure my problem is 'fixable' but I'm currently building a text=based adventure game with a piece of software called Twine. The software allows you to use mp3 sound clips in your game, and has a 'loop' feature for when you want the sound playing continuously (such as one might with the sound of rain, wind or a crackling fire).

However, when the clip comes to an end, then starts the loop again, there's a very noticeable 'pop' of silence between it ending and starting up.

I've tried a fade out on the end of the track, and I've also tried it with a fade out and fade in, but these methods only accentuate the split.

Is there anything I can do to eliminate or mask this transition noise?

Thanks in advance.

kozikowski
Forum Staff
Posts: 68901
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: 'Pop' noise when looping

Post by kozikowski » Thu Nov 24, 2016 2:11 am

There's a similar problem with DVD splash page looping. "Welcome to the Doobly-Doo DVD, Welcome to the Doobly-Doo DVD, Welcome to the Doobly-Doo DVD.

It seems to perfectly and seamlessly loop between all those iterations—which is physically impossible. What you don't know is the loops were produced as one single two minute video and in two minutes, you're going to get a big lurch and pop as the DVD resets...but nobody ever hangs around that long. So you might try that. How long a track are you allowed to post in a single pass?

Never do production in MP3. MP3 has "magic" stop, start and delay times because of its heritage. It was originally part of a video format and depends on video to do all the timing. No video, ratty timing.

Do they allow you to use a different sound format?

Koz

DVDdoug
Forum Crew
Posts: 9278
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: 'Pop' noise when looping

Post by DVDdoug » Thu Nov 24, 2016 2:19 am

Try cutting on the Zero Crossings.

You may also need to remove any DC Offset.
The software allows you to use mp3 sound clips in your game, and has a 'loop' feature for when you want the sound playing continuously
MP3 encoding adds some silence to the beginning of the file so you may get a short gap between loops unless the software is smart enough to skip over the silent part.

OurJud
Posts: 72
Joined: Thu Nov 24, 2016 12:23 am
Operating System: Windows 7

Re: 'Pop' noise when looping

Post by OurJud » Thu Nov 24, 2016 2:30 am

Thanks, chaps!

I think other audio formats are allowed, .wav maybe?

I'll take a look at those links and see what I can make from them.

Thanks again.

kozikowski
Forum Staff
Posts: 68901
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: 'Pop' noise when looping

Post by kozikowski » Thu Nov 24, 2016 2:39 am

Do try WAV. I don't know if that's guaranteed, but we know MP3 has serious problems.

Koz

OurJud
Posts: 72
Joined: Thu Nov 24, 2016 12:23 am
Operating System: Windows 7

Re: 'Pop' noise when looping

Post by OurJud » Thu Nov 24, 2016 2:59 am

Right, tried .wav and it was just as bad. I tried the Zero Crossings (didn't really understand the tutorial) but highlighting the whole clip then choosing it from the menu made no apparent (visual) change to the clip. I then did the Offset thing.

None of these things made a difference.

Unfortunately I suspect there's not a lot I can do, as what I'm hearing is the split-second of silence when the clip stops then begins its loop again.

I could make the clip longer, but the bigger the audio file size, the bigger the finished game file size. And in any case the problem will still there be as certain sounds are meant to run virtually the entire duration of the game, such as the wind, which is only told to stop when the player enters a building.

Thanks for your help, and feel free to not give up if you want :D

Trebor
Posts: 9847
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Re: 'Pop' noise when looping

Post by Trebor » Thu Nov 24, 2016 4:48 am

OurJud wrote:... The software allows you to use mp3 sound clips in your game, and has a 'loop' feature for when you want the sound playing continuously ... However, when the clip comes to an end, then starts the loop again, there's a very noticeable 'pop' of silence between it ending and starting up.
When you make an MP3 in Audacity a ~1/20th of second of silence is inserted at the start.
Using WAV solves the problem : silence not inserted, and seamless looping is possible.

OurJud
Posts: 72
Joined: Thu Nov 24, 2016 12:23 am
Operating System: Windows 7

Re: 'Pop' noise when looping

Post by OurJud » Thu Nov 24, 2016 5:14 pm

Trebor wrote:
OurJud wrote:... The software allows you to use mp3 sound clips in your game, and has a 'loop' feature for when you want the sound playing continuously ... However, when the clip comes to an end, then starts the loop again, there's a very noticeable 'pop' of silence between it ending and starting up.
When you make an MP3 in Audacity a ~1/20th of second of silence is inserted at the start.
Using WAV solves the problem : silence not inserted, and seamless looping is possible.
OurJud wrote:Right, tried .wav and it was just as bad.

OurJud
Posts: 72
Joined: Thu Nov 24, 2016 12:23 am
Operating System: Windows 7

Re: 'Pop' noise when looping

Post by OurJud » Thu Nov 24, 2016 5:18 pm

Perhaps I need to clarify again.

I understand seamless looping within Audacity is possible, but this is not the problem. The problem is that I'm using the clip with a text-based adventure creator program, and then using its loop command.

If it's the way Twine (the adventure writing program) handles audio looping, then I'm not sure there's a solution.

Trebor
Posts: 9847
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Re: 'Pop' noise when looping

Post by Trebor » Fri Nov 25, 2016 2:22 am

OurJud wrote:If it's the way Twine (the adventure writing program) handles audio looping, then I'm not sure there's a solution.
If you try uploading a totally silent track, and it still pops when looped, then the problem is at their end.

Locked