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

repeat \ reloop full track length accuracy #9842

Closed
mixxxbot opened this issue Aug 23, 2022 · 1 comment · Fixed by #11532
Closed

repeat \ reloop full track length accuracy #9842

mixxxbot opened this issue Aug 23, 2022 · 1 comment · Fixed by #11532

Comments

@mixxxbot
Copy link
Collaborator

mixxxbot commented Aug 23, 2022

Reported by: mevsme
Date: 2019-12-17T11:16:25Z
Status: Confirmed
Importance: Medium
Launchpad Issue: lp1856683
Tags: looping


There are issues with loop end marker and track end detection. Thus repeating or looping of a track\loop\sample with exact number of beats\bars cause longer loops than necessary.

the discussion: https://mixxx.zulipchat.com/#narrow/stream/109171-development/topic/repeat.20accuracy

@ronso0
Copy link
Member

ronso0 commented Apr 24, 2023

The issue with loop end markers at the track end is not reproducible.

However, repeating tracks would still make the looped track longer than it actually is.
This happens because if the last audio buffer at the track end can’t be filled with existing audio samples (very likely) it is padded with silence, thus you’ll get a tiny playback gap before the playhead seeks to the track start which makes the track longer than it actually is. That means a repeated track will fall out of (beat) sync with longer tracks playing at the same speed (BPM).

For loops, ReadAheadManager::getNextSamples is handling this crossfading from loop_end to loop_start.
For track repeat a similiar solution is needed. I have a POC branch (hack) ready but I can't verify atm due to lack of appropriate tracks.
https://github.com/ronso0/mixxx/pull/new/repeat-offset-buffer-fill

@mevsme Could you share some links to example files for testing please?

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.

3 participants