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

loop_in & loop_out at same postion should not create a loop #10600

Closed
mixxxbot opened this issue Aug 23, 2022 · 2 comments · Fixed by #11771
Closed

loop_in & loop_out at same postion should not create a loop #10600

mixxxbot opened this issue Aug 23, 2022 · 2 comments · Fixed by #11771

Comments

@mixxxbot
Copy link
Collaborator

Reported by: ronso0
Date: 2021-11-09T22:57:44Z
Status: Confirmed
Importance: Undecided
Launchpad Issue: lp1950392
Tags: looping


I discovered this by chance:

  • set loop_in
    (don't change play position)
  • set loop_out
    = loop is created and activated
  • hit Play
    = waveform 'vibrates'

IMO when setting the loop_out in the same position Mixxx should refuse to create a loop.

check for loop_in < loop_out here
https://github.com/mixxxdj/mixxx/blob/441181a1338bc00be45cde8bf772bca844bbbd95/src/engine/controls/loopingcontrol.cpp#L844
@mixxxbot
Copy link
Collaborator Author

Commented by: daschuer
Date: 2021-11-09T23:20:35Z


I think we need to replace < with <= here: 

if (!loopInfo.startPosition.isValid() || position < loopInfo.startPosition) {

It is a vibrating loop because of the quantize effect of the engine. Loops can't be shorter than a buffer size. So maybe we should take this into account here as well.

@mixxxbot
Copy link
Collaborator Author

Commented by: ronso0
Date: 2022-06-14T22:35:11Z


It seems the loop is already grown to have playable span.

@mixxxbot mixxxbot transferred this issue from another repository Aug 24, 2022
@ronso0 ronso0 linked a pull request Jul 28, 2023 that will close this issue
@ronso0 ronso0 closed this as completed Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants