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

Hock on particular sound #1

Open
ranska opened this issue Dec 13, 2014 · 1 comment
Open

Hock on particular sound #1

ranska opened this issue Dec 13, 2014 · 1 comment

Comments

@ranska
Copy link

ranska commented Dec 13, 2014

HI thanks for your job it's awesome.
I want to know if in your player there is a way to run callback from javascript when a note is playing ?

@wothke
Copy link
Owner

wothke commented Dec 14, 2014

Hi

Thanks. I did not make any additions to the original XMP functionality and
in particular so far I did not add any JavaScript hooks which might allow to
handle specific music events.

Supposing there is a place in the original XMP C code where the playback of
different notes can be distinguished, then it would be fairly easy to
there add a respective JavaScript hook. (So far I did not analyze the
original XMP code enough so that I could pin down that place..)

If you fancy adding such a feature, I'd suggest you get in touch with
Claudio Matsuoka (he takes care of the original XMP and seems to be a
very friendly and helpful chap). With his help you should be abel to
identify the relevant code and you should find examples for how to
setup JavaScript hooks in some of my other players (I am using those
in websc68 and in webuade to load files.).

Cheers, Juergen

Zitat von ranska [email protected]:

HI thanks for your job it's awesome.
I want to know if in your player there is a way to run callback from
javascript when a note is playing ?


Reply to this email directly or view it on GitHub:
#1

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

2 participants