Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looping should try to prevent clicks #5545

Closed
mixxxbot opened this issue Aug 22, 2022 · 4 comments
Closed

Looping should try to prevent clicks #5545

mixxxbot opened this issue Aug 22, 2022 · 4 comments

Comments

@mixxxbot
Copy link
Collaborator

Reported by: asantoni
Date: 2010-10-03T04:36:43Z
Status: Fix Released
Importance: Medium
Launchpad Issue: lp653896
Tags: engine, looping
Attachments: zerocross-ish-looping.diff


When looping, Mixxx should try to prevent clicking sounds caused by large, discontinuous jumps in the audio signal. The conventional way of doing this for mono streams is to adjust the loop start and end points to both coincide with zero crossings. This approach isn't so straightforward for stereo streams because zero crossings may not appear in both channels at the same time.

Nevertheless, I've written some code that attempts to find a compromise between the zero crossing positions in both the left and right channels, and I think it reduces clicking in most cases. Attached is the patch.

Probably a better way to do this is just to fade the audio over X samples.

@mixxxbot
Copy link
Collaborator Author

Commented by: asantoni
Date: 2010-10-03T04:36:43Z
Attachments: zerocross-ish-looping.diff

@mixxxbot
Copy link
Collaborator Author

Commented by: ywwg
Date: 2012-06-06T16:09:15Z


My patch in https://bugs.launchpad.net/bugs/703585 solves this a different way, but crossfading between the out point and the in point over a period of one iBufferSize.

@mixxxbot
Copy link
Collaborator Author

Commented by: rryan
Date: 2012-09-06T19:11:50Z


Fixed by Owen's patch in Bug #⁠703585.

@mixxxbot
Copy link
Collaborator Author

Issue closed with status Fix Released.

@mixxxbot mixxxbot transferred this issue from another repository Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant