Skip to content

Commit

Permalink
Merge pull request #4263 from Holzhaus/beatgrid-frame-boundary
Browse files Browse the repository at this point in the history
BeatFactory: Round beatgrid frame positions in makePreferredBeats()
  • Loading branch information
uklotzde committed Sep 4, 2021
2 parents 4059a0c + 311fb24 commit d585e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/track/beatfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ mixxx::BeatsPointer BeatFactory::makePreferredBeats(
constantRegions, sampleRate, &firstBeat);
firstBeat = BeatUtils::adjustPhase(firstBeat, constBPM, sampleRate, beats);
auto pGrid = mixxx::BeatGrid::makeBeatGrid(
sampleRate, constBPM, firstBeat, subVersion);
sampleRate, constBPM, firstBeat.toNearestFrameBoundary(), subVersion);
return pGrid;
} else if (version == BEAT_MAP_VERSION) {
QVector<mixxx::audio::FramePos> ironedBeats = BeatUtils::getBeats(constantRegions);
Expand Down

0 comments on commit d585e26

Please sign in to comment.