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

Transport.schedule not invoke after bpm change #1306

Open
1 task done
moayuisuda opened this issue Jan 11, 2025 · 0 comments
Open
1 task done

Transport.schedule not invoke after bpm change #1306

moayuisuda opened this issue Jan 11, 2025 · 0 comments

Comments

@moayuisuda
Copy link

Describe the bug
I had a link for minimal Reproduce https://codesandbox.io/p/sandbox/gwmyw7?file=%2Fsrc%2FApp.js%3A33%2C43
I had two button to invoke two loop, in one loop i had a schedule to release synth after triggerAttck, if I only invoke the this loop, the scheduled triggerRelease will invoke in correct time
image

but if i invoke second loop firstly, then change bpm and invoke first loop, the scheduled triggerRelease will not invoke.
image

To Reproduce
https://codesandbox.io/p/sandbox/gwmyw7?file=%2Fsrc%2FApp.js%3A33%2C43

Expected behavior
scheduled triggerRelease will invoke correctly

What I've tried
I've tried replace loop with scheduleRepeat, but get the same result

Additional context
if the bpm is the same, it seems scheduled triggerRelease will invoke correctly, but in my app, change bpm is a essential part

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

No branches or pull requests

1 participant