wild-web-midi icon indicating copy to clipboard operation
wild-web-midi copied to clipboard

Incorrect pitch on mobile devices

Open earboxer opened this issue 5 years ago • 2 comments

See https://github.com/rism-ch/midi-player/issues/21

This also applies on http://zz85.github.io/wild-web-midi, but not when "Run WAV Converter" is used.

earboxer avatar Jun 23 '20 15:06 earboxer

At least for this one... https://github.com/zz85/wild-web-midi/blob/1800e925bc7296420d1966c4d44f4578dbe6d331/web_audio_player.js#L72 if we change it into

   audioCtx = new window.AudioContext({sampleRate:SAMPLE_RATE});

it will work, at least on my PC.

However the MDN says that the support of 'sampleRate" for AudioContext starts from Chorme 74. Is the support came early enough so that we can apply it safety?

14725 avatar Jan 23 '21 13:01 14725

Tested this fix in rism-digital/midi-player, and it solves the problem. Thanks!

efreja avatar Feb 14 '21 21:02 efreja