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

FadeWorkS: Fix off-by-one error for \ko fades #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bucket3432
Copy link

koko_da determines the \ko duration by dividing the "Fade in" value by the number of word characters and punctuation if the "Fade in" value is at least 40.

len contains the number of word characters and punctuation, but 1 is erroneously subtracted from it before the division, resulting in durations that are too long to fit the "Fade in" duration. The fix is to remove the subtraction and simply divide by len.

`koko_da` determines the \ko duration by dividing the "Fade in" value by
the number of word characters and punctuation if the "Fade in" value is
at least 40.

`len` contains the number of word characters and punctuation, but 1 is
erroneously subtracted from it before the division, resulting in
durations that are too long to fit the "Fade in" duration. The fix is
to remove the subtraction and simply divide by `len`.
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