Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 1955 - Enh: Clicks loop-playing audio.
Enh: Clicks loop-playing audio.
Status: CLOSED NOT-A-BUG
Product: Audacity
Classification: Unclassified
Component: Audio IO
2.3.0
Per OS Other
: P4 Enhancement
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-29 11:17 UTC by James Crook
Modified: 2019-08-10 15:33 UTC (History)
5 users (show)

See Also:
Steps To Reproduce:
1. Start loop playing some selected audio, where the selection has a negative sample at the start and a positive sample at the end. Observe: A: Audacity clicks each time round the loop.
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2019-08-10 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Crook 2018-08-29 11:17:07 UTC

    
Comment 1 Peter Sampson 2018-08-29 11:29:11 UTC
But surely one would expect that due to the mismatched waves - it's what happens when you make a bad cut where the waveforms don't match - or when you get dropouts.

The looping page in the Manuela tells you to avoid this:
https://alphamanual.audacityteam.org/man/Tutorial_-_Looping

Surely we want users to hear if they have a bad start/end to their loop  - otherwise if we smooth it out for then with fades or some-such they will just repeat the audio to make the looping - and then they will get clicks at this junction.

I think this is expected behavior and is NOTABUG
Comment 2 James Crook 2018-08-29 11:34:05 UTC
Marked as enhancement.

It's a nice-to-have to have a smart way of automatically repairing the 'join' if the samples don't actually match up.  Possibly there will be configuration parameters in preferences to set how readily/strongly we repair.
Comment 3 Steve Daulton 2018-08-29 12:12:40 UTC
So long as there is only one click when the ends don't match, and no clicks when the ends do match, then I agree with Peter that this is not a bug.
On Linux I observe this to be correct.

To demonstrate a "perfect" loop:
1) Generate a sine tone, frequency 441 Hz
2) Enable snapping to seconds
3) Select 2 seconds
4) Loop play.

With a sample rate of 44100 Hz, there are exactly 100 samples per cycle, and exactly 441 cycles per second, so the loop should be perfect (no click).

(In fact there should be no click for any integer frequency sine tone with a length of 2 seconds, but you have to be careful to select to exactly seconds, and not to sample positions.)


I also agree with James that "a smart way of automatically repairing the 'join' if the samples don't actually match up" would be a "nice to have", though I think this would have to support copying and exporting the "repaired" selection, and not only "loop play", otherwise what you hear will not be what you get. (I'm thinking of "looping" use cases).
Comment 4 James Crook 2019-08-10 15:32:01 UTC
CLOSED NOT-A-BUG.  It's a feature request.