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

debugPropertySet not triggering #81

Open
page200 opened this issue Jul 9, 2023 · 0 comments
Open

debugPropertySet not triggering #81

page200 opened this issue Jul 9, 2023 · 0 comments

Comments

@page200
Copy link

page200 commented Jul 9, 2023

Clicking on the button "multi-instrumental" on the page https://github.com/mudcube/MIDI.js/blob/abcjs/examples/MIDIPlayer-v2.html (after the bugfix mentioned below) changes the global variable MIDI.Soundfont, but debugPropertySet(MIDI, "Soundfont") doesn't trigger a breakpoint. Neither does debugPropertySet(MIDI, "Soundfont", "trace") print a trace. Am I using it wrong?

The bugfix is to provide valid URLs to a MIDI file and SoundFont, i.e. to replace
<button onclick="load()">multi-instrumental</button>
by
<button onclick="load('https://bitmidi.com/uploads/107090.mid')">multi-instrumental</button>

and to replace
MIDI.setup({
by
MIDI.setup({soundfontUrl: "https://gleitz.github.io/midi-js-soundfonts/MusyngKite/",

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