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

support "mapping extensions" beatmaps #192

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

digama0
Copy link
Contributor

@digama0 digama0 commented Feb 27, 2024

Some maps like Shirobon - Into the Zone make use of the Mapping Extensions add-on(?), in which _lineIndex and _lineLayer are not in the range 0..3, 0..2 but are instead more than 1000. This would previously cause these maps to break, generating all notes in a line on the left. The explanation of the mapping is given here, which has been copied into this code.

I had to remove the indirection through horizontalPositionsHumanized, because it does not generalize well to notes at fractional positions. Other mappings have been converted to linear functions as appropriate.

src/components/beat.js Outdated Show resolved Hide resolved
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