Skip to content

How to change tempo and how to loop a section. #47

Answered by cifkao
eyeke04 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your question! The player API is described here. Whatever is not there isn't directly supported, but of course some advanced features can be implemented using this API.

Is there a player method to increase/reduce the tempo.

Unfortunately there isn't, see #21.

Also how can I loop through a section of the noteSequence?

Looping is not supported, see #8. You could try listening for the note event and when the time exceeds the end of your section, you reset back to the beginning (by setting player.currentTime). However as I noted in #8, the looping probably won't be perfect, there will be some delay.

Extra question - please when the player start, I want to get the first note in…

Replies: 1 comment 1 reply

Comment options

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

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