schellingb / TinySoundFont

SoundFont2 synthesizer library in a single C/C++ file
MIT License
645 stars 76 forks source link

TinySoundFont HTML5 MIDI Player doesn't work in Microsoft Edge #37

Open RyanBram opened 5 years ago

RyanBram commented 5 years ago

Hi, Mr. Bernhard Schelling .

When I tried your TinySoundFont HTML5 MIDI Player at https://schellingb.github.io/TinySoundFont/CustomSoundFont.html using Microsoft Edge, I cannot hear any sound from my browser. But when using another browser, it works perfectly. Are there any issue that can be fixed there? Because I want to ask somebody to make HTML5 game script that support MIDI and your library is the best for it and I want to use your HTML 5 MIDI Player as reference.

Thank you very much for your attention.

RyanBram commented 5 years ago

I am sorry to bump this topic again.

schellingb commented 5 years ago

Thanks for the report. Sorry for the delayed response but I got it working :-)

Just to make sure, this library has no specific HTML5 features and there is no generic HTML5 interface. For it to be used like the HTML5 MIDI player demo, TinySoundFont needs to be compiled from C or C++ to WebAssembly or asm.js with Emscripten or Clang.

Building a plug-and-play JavaScript library using TinySoundFont with a generic interface that can be used in any HTML5 website or game would not be that hard, but it involves more than just HTML5/JavaScript.

RyanBram commented 5 years ago

Hi Mr. @schellingb . Thank you very much for your response and your advice.

I myself am not a programmer, but my initial plan is to ask my programmer to use your pre-compiled library from your HTML5 website and interfacing it with Javascript to use it in RPG Maker MV. We have tried the similar approach with libopenmpt.js and chiptune2.js and it worked. Now we want to try it with your library to add MIDI codec in our game.

We will tell you if we finished the task.

Thanks.