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

BeatGrid::makeBeatGrid(): Delete debug assertion #4261

Closed
wants to merge 1 commit into from
Closed

BeatGrid::makeBeatGrid(): Delete debug assertion #4261

wants to merge 1 commit into from

Conversation

uklotzde
Copy link
Contributor

@uklotzde uklotzde commented Sep 4, 2021

@Holzhaus
Copy link
Member

Holzhaus commented Sep 4, 2021

Do we know where the call originates? That code should call position.toLowerFrameBoundary() or position.toNearestFrameBoundary().

The debug assertion is supposed to protect against the case where after ejecting/reloading the track the beatgrid is suddenly a bit shifted because the original position was fractional and rounded by the integer conversion.

@uklotzde
Copy link
Contributor Author

uklotzde commented Sep 4, 2021

Invoked by BeatFactory::makePreferredBeats() with BEAT_GRID_2_VERSION.

The position is the result of BeatUtils::makeConstBpm() (modifies firstBeat) and then BeatUtils::adjustPhase().

Holzhaus added a commit to Holzhaus/mixxx that referenced this pull request Sep 4, 2021
Due to our interal beatgrid storage format, fractional beat positions
are not allowed.

Fixes https://github.com/mixxxdj/mixxx/pull/4258/files#r702285221.

Alternative to mixxxdj#4261.
Holzhaus added a commit to Holzhaus/mixxx that referenced this pull request Sep 4, 2021
Due to our internal beatgrid storage format, fractional beat positions
are not allowed.

Fixes https://github.com/mixxxdj/mixxx/pull/4258/files#r702285221.

Alternative to mixxxdj#4261.
@Holzhaus
Copy link
Member

Holzhaus commented Sep 4, 2021

Please have a look at: #4263

@uklotzde uklotzde closed this Sep 4, 2021
@uklotzde uklotzde deleted the beatgrid branch September 8, 2021 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants