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

Call function on each note during animation #1470

Open
kpj opened this issue Nov 13, 2022 · 0 comments
Open

Call function on each note during animation #1470

kpj opened this issue Nov 13, 2022 · 0 comments

Comments

@kpj
Copy link

kpj commented Nov 13, 2022

Thanks a lot for creating this amazing library!

My goal is to animate the progression of a song by moving the musical notes across the stave. In addition, I want to call a function (which will do other cool things) whenever a note is "played" ("played" could just mean that the note crosses a certain area of the stave while moving horizontally).

The animation part seems possible, as indicated by a related issue #538 and a wiki page.

What is currently not clear to me, is how to execute a function at the specific time a note is "played" during the animation.
It might be possible to hope for the best and time VexFlow's note display independently from the function execution but that seems unreliable.

Do you have a suggestion how to best achieve this?

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