-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Syncing multiple Playbacks #299
Comments
Hmm, unfortunately there is no way to eliminate that drift with the current approach. I'll think about API that allows to place multiple playbacks on top of the same |
That would be a great feature! Speaking of which, is there a particular reason, so much Playback API is not exposed to the end used and marked as internal and/or sealed? |
If some API is private/sealed/internal, I think that API is not for a user and is needed for internal logic only. So I don't hide useful API intentionally. If that happens, it's because I even didn't think it could be useful. |
I understand, All I'm saying is there's plenty of useful stuff behind private/internal! For example, No problem, I'll write my own one from scratch. |
That's what I want to "fix" :-) But in fact this can be not so easy as we can imagine. I need to try and if no problems will be observed, I'll publish a prerelease version of the library. |
Great to hear! I'm kinda succeeded with syncing my own playbacks by keeping track of time inside each playback, having just one master clock, and subscribing/unsubscribing from p.s. If you're up for this, I can open another issue, and prepare a PR when I have a free evening. |
It would be great to see your changes to understand better your needs :-) |
I've got a question about syncing two or more playbacks.
Imagine a midi sequencer, where a note has been changed while playing.
The sequencer loops the same 16 steps forever.
As it's impossible to directly change
_playbackEvents
on-the-go with the current API,I figured I can just recreate the
Playback
instance and swap the oldPlayback
with the new one:This results in a slight clock drift, which is negligible at first, but when done enough times its hard to ignore.
Is there a possible workaround, like syncing multiple Playbacks to the same clock?
P.S. Awesome library!
The text was updated successfully, but these errors were encountered: