Improve phase-adjustment algorithm

Bug #896911 reported by Owen Williams
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Undecided
Owen Williams

Bug Description

Pushing the sync button also adjusts the phase of the track, often in ways that are tough to predict and that shift the track sync by a whole beat. Phase adjustment should take into account whether the playhead is nearer to the previous beat or the next beat to better anticipate where the DJ intends to place sync.

Here's a patch that does that.

Related branches

Revision history for this message
Owen Williams (ywwg) wrote :
Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Maybe this could slip into 1.10. I didn't put too much thought into how the actual sync worked and now that I think about it, you're right it's kind of odd.

Changed in mixxx:
milestone: none → 1.10.0
assignee: nobody → Owen Williams (ywwg)
status: New → Confirmed
Revision history for this message
Owen Williams (ywwg) wrote :

The only possible bug I can think of is that I call findNthBeat(dThisPosition, -2); -- what happens if there is no beat there? Is there some sort of error value returned? I tried sync-playing at the start of a track, thinking there wouldn't be a -2 bug, but it still seemed to work.

Revision history for this message
Owen Williams (ywwg) wrote :

edit: "I tried sync-playing at the start of a track, thinking there wouldn't be a -2 *beat*, but it still seemed to work."

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

I played with it a bit and I agree it feels more natural. Added to the 1.10 branch.

Changed in mixxx:
status: Confirmed → Fix Committed
RJ Skerry-Ryan (rryan)
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/6146

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.