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

Beats: Implement setBpm() for BeatMaps and remove capabilities #4184

Merged
merged 2 commits into from
Aug 8, 2021

Conversation

Holzhaus
Copy link
Member

@Holzhaus Holzhaus commented Aug 6, 2021

No description provided.

@Holzhaus Holzhaus added this to the 2.4.0 milestone Aug 6, 2021
@Holzhaus Holzhaus added this to In progress in Beats Refactoring via automation Aug 6, 2021
Copy link
Contributor

@uklotzde uklotzde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a suggestion regarding the naming.

Please fix the clazy warning.

/// TODO: This is only needed for the "Asumme Constant Tempo" checkbox in
/// `DlgTrackInfo`. This should probably be removed or reimplemented to
/// check if all neighboring beats in this object have the same distance.
virtual bool isConst() const = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

has/isConstantTempo()? I would prefer to be more explicit here.

For now, BeatMap::setBpm() will simply return a const BeatGrid object
with the desired BPM, starting at the first beat of the BeatMap.

In the future, both Beats classes should be merged.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1110006044

  • 1 of 19 (5.26%) changed or added relevant lines in 6 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.004%) to 25.997%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/library/dlgtrackinfo.cpp 0 2 0.0%
src/track/beatgrid.h 0 2 0.0%
src/track/beatmap.h 0 2 0.0%
src/track/beatmap.cpp 0 5 0.0%
src/engine/controls/bpmcontrol.cpp 0 7 0.0%
Files with Coverage Reduction New Missed Lines %
src/engine/cachingreader/cachingreaderworker.cpp 2 63.48%
Totals Coverage Status
Change from base Build 1109639238: -0.004%
Covered Lines: 20008
Relevant Lines: 76964

💛 - Coveralls

Copy link
Contributor

@uklotzde uklotzde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! LGTM

@uklotzde uklotzde merged commit 8715006 into mixxxdj:main Aug 8, 2021
Beats Refactoring automation moved this from In progress to Done Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants