Skip to content

how to interact with midi from new buttons ? #1102

@fxpar

Description

@fxpar

Hi,
How to interact with the renderer from new buttons within wp plugin?

Image

I have multiple exercises for each page. Example here: https://www.fxparlant.net/test-abc-notation-plugin/

U function

I have tried the same function as on the other buttons on the default player:
<button onclick="(function(t) { u(e.options.playPromiseHandler || e.options.playHandler, t, s, e.options.afterResume, !!e.options.playPromiseHandler) })();">Test U</button>
Error: u is not defined

abcjs.midi.startPlaying

I tried with the abcjs.configurator:
<button onclick="abcjs.midi.startPlaying(document.getElementById('abcjs-midi-687e010d06e5e'));">Test play</button>
Error abcjs is not defined

Thanks for you help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions