You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't so much a feature request, but a request for advice on how to go about approaching an app using Tone.js.
I'm attempting to build an interactive UI where multiple participants can each play an instrument on their own device and play "in time" with each other. I'm going for a similar effect to: https://plink.in/
To accomplish this using Tone.js I believe I would have to:
Use websockets for low latency communication between clients
Schedule notes to be played slightly in the future and publish them as events to all clients
Solve the "clock skew" problem (every device has a slightly different local time) and figure out the offset between a given client's local time VS the server's time and apply that offset to Tone.js (I think I may be able to use the new timing-object, timing-provider and timingsrc libraries which are polyfills for their respective WC3 proposals; Or a library like clockskew)
Periodically re-sync each client as their tempos drift
Any advice for how you might go about solving this problem with Tone.js? I know you guys have an approach to re-sync timing periodically to achieve a fixed tempo.
Hi @MattTheRed, I'm the author of the timing* libraries you mentioned above. This question actually comes up quite often which is why I made an attempt to create a demo for it.
Hi @MattTheRed, I'm the author of the timing* libraries you mentioned above. This question actually comes up quite often which is why I made an attempt to create a demo for it.
The feature you'd like
This isn't so much a feature request, but a request for advice on how to go about approaching an app using Tone.js.
I'm attempting to build an interactive UI where multiple participants can each play an instrument on their own device and play "in time" with each other. I'm going for a similar effect to: https://plink.in/
To accomplish this using Tone.js I believe I would have to:
Tone
class to start at the same time (Here's a naive attempt at doing this: https://codepen.io/mattthered/pen/VwpLdvp)Any advice for how you might go about solving this problem with Tone.js? I know you guys have an approach to re-sync timing periodically to achieve a fixed tempo.
https://codepen.io/mattthered/pen/VwpLdvp
Any alternatives you've considered
N/A
Additional context
N/A
Feature Requests will eventually be closed if inactive
Feel free to close this as an issue since this is not an actual feature request.
The text was updated successfully, but these errors were encountered: