-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
There was a problem hiding this 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.
src/track/beats.h
Outdated
/// 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; |
There was a problem hiding this comment.
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.
5e8b560
to
3beef8f
Compare
Pull Request Test Coverage Report for Build 1110006044
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! LGTM
No description provided.