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

Fix incorrect bpm display for ssc songs with varying bpms per-chart #1217

Conversation

bluebandit21
Copy link
Member

This fixes the remaining problem within #615 wherein the displayed BPM range for songs that had different BPM ranges per-chart was incorrect.

#619 fixed most of the problems, but as Poco noted in #619 (comment) the Lua binding for BPMDisplay SetFromSteps still did not work even after that change.

That was because BPMDisplay::SetBpmFromSteps did all the work to determine the correct BPM range and then just ... didn't call SetBPMRange to actually update it.

This PR fixes that function and then makes the simple changes required to Rebirth, Til Death, and bare-frames to get them to use it.

Closes: #615

…e range

Previously the function correctly determined the correct BPM range for the
particular given chart and then ... did absolutely nothing with it.
This mistake in the function dates all the way back to the "initial commit" of
the current git repository, which is kind of neat.
…n song

Previously, Til Death called the Lua binding for BPMDisplay::SetBpmFromSong
as BPMDisplay::SetBpmFromSteps was broken. This meant that songs that had
different BPM ranges per-chart (as is possible in .ssc files) only showed
the BPM range of the very first chart for all of them.

This small change fixes that and lets Til Death display the correct
ranges for every individual chart :)
…song

Previously, Rebirth called the Lua binding for BPMDisplay::SetBpmFromSong
as BPMDisplay::SetBpmFromSteps was broken. This meant that songs that had
different BPM ranges per-chart (as is possible in .ssc files) only showed
the BPM range of the very first chart for all of them.
…han song

Previously, bare-frames called the Lua binding for BPMDisplay::SetBpmFromSong
as BPMDisplay::SetBpmFromSteps was broken. This meant that songs that had
different BPM ranges per-chart (as is possible in .ssc files) only showed
the BPM range of the very first chart for all of them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants