Skip to content

How to schedule? #213

Answered by djipco
cristianvogel asked this question in Q&A
Jan 12, 2022 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

You cannot reset performance.now(). However, what you can do is save the offset between the moment you press "play" in your system and WebMidi.time. Then, whenever you want to schedule a note, you just have to add this offset.

This got me thinking though... perhaps this could be added to the library. It wouldn't be hard to implement what I wrote above into the lib so that WebMidi.time can be reset. I'll add that to my list of things to evaluate.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@cristianvogel
Comment options

Comment options

You must be logged in to vote
3 replies
@cristianvogel
Comment options

@djipco
Comment options

@haszari
Comment options

Answer selected by cristianvogel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants