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 interpolating rate values, set ReTrigger reset range toggle #512

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

ASleepyCat
Copy link

@ASleepyCat ASleepyCat commented Sep 25, 2021

The previous interpolation method was way wrong, I don't even know what it was trying to calculate. For effects of type Rate, they're represented as fractions (e.g. 1.0 > 0.0625 == 1/16).

This should fix custom FX filters for ReTrigger sounding way off. In some cases they still sound off but are somewhat passable. I have a feeling it gets more inaccurate the further the chart plays, but I haven't investigated that.

Edit: Turns out KSM doesn't do linear interpolation for ranged ReTrigger/Gate effects, it uses a hardcoded list and rounds down values in certain ways that I don't think can be expressed as an algorithm easily. https://github.com/m4saka/kshootmania-v1-hsp/blob/19bfb6acbec8abd304b2e7dae6009df8e8e1f66f/src/scene/play/play_utils.hsp#L455-L470

@ASleepyCat ASleepyCat marked this pull request as draft May 17, 2022 13:53
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.

1 participant