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

Repair stepOffset in sync.flash #88

Merged
merged 1 commit into from
Apr 8, 2023
Merged

Repair stepOffset in sync.flash #88

merged 1 commit into from
Apr 8, 2023

Conversation

stianjensen
Copy link
Member

I couldn't find any traces of us actually having used stepOffset before, so I can't say for sure what the intended purpose was, but this makes it behave more how I was expecting it, letting you offset when in a beat/bar flashes occur.

The trick is that we need the value for startStep to change exactly when we reach the step of its new value. That was out of sync without this fix, giving strange results.

I couldn't find any traces of us actually having used stepOffset before,
so I can't say for sure what the intended purpose was, but this makes it
behave more how I was expecting it, letting you offset when in a
beat/bar flashes occur.

The trick is that we need the value for startStep to change exactly when
we reach the step of its new value. That was out of sync without this
fix, giving strange results.
@aleksanb aleksanb self-assigned this Apr 8, 2023
@aleksanb aleksanb merged commit 2d62953 into main Apr 8, 2023
@aleksanb aleksanb deleted the fix-step-offset branch April 8, 2023 10:50
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