surikov / webaudiofont

Use full GM set of musical instruments to play MIDI and single sounds or effects. Support for reverberation and equaliser. No plugins, no Flash. Pure HTML5 implementation compatible with desktop and mobile browser. See live examples.
https://surikov.github.io/webaudiofont/
GNU General Public License v3.0
891 stars 92 forks source link

Audio crackly on iOS 9 Safari. #31

Closed defmech closed 5 years ago

defmech commented 5 years ago

Hi, I'm looking at options for a midi player for a game we are developing. Unfortunately we need to support iOS 9 on iPad 2.

I've managed to get the midiplayer.html example working by making some small tweaks to MIDIFile.js, I've replaced let & const references with var, however while playback does seem to work it's a bit crackly. The sample rate seems fine at 44100 Hz. Any ideas what may be causing it? The library suits our needs almost exactly just this crackly noise problem.

surikov commented 5 years ago

Use https://jsbin.com/?html,output to reproduce problem Paste linkto the code here

defmech commented 5 years ago

Hi, I've uploaded mode code here: https://davidlochhead.xyz/test-webaudiofont/examples/midiplayer.html#

As I said all I did was replace let & const with var in MIDIFile.js to get Safari 9 to load the demos. I've also added another simple midi file for my testing.

surikov commented 5 years ago

Create simple code to reproduce problem. Example http://jsbin.com/lamidog/1/edit?html,output

surikov commented 5 years ago

I can't help you without example of code, sorry.