Closed bakoorjakkals closed 3 months ago
Webaudiofont does not play MIDI files. Webaudiofont plays musical instruments.
This page is an old quick example of using Webaudiofont: https://surikov.github.io/webaudiofont/examples/midiplayer.html
There are no plans to change the examples.
Hint The browser does not allow window.requestAnimationFrame to be used on background tabs. You need to change it for your own applications.
Thanks for the hint, I will see if I can get it to work.
An approach that works but hasn't yet been optimized was discussed in issue #92. Please let us know in case you optimize it.
Describe the bug Good day, thanks for this wonderful library.
I'm trying add the capability to play MIDI files to my webapp. I have implemented a working solution based off your example: https://surikov.github.io/webaudiofont/examples/midiplayer.html.
However, when I change browser tabs or applications, the MIDI file stops playing. This is the case both inside my webapp and in the example. Is there a way to configure webaudiofont so that MIDI files can continue to play in the background?
To Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):