MIDI.js icon indicating copy to clipboard operation
MIDI.js copied to clipboard

Some note randomly has no sound in firefox for each load

Open ccmjimmy opened this issue 9 years ago • 3 comments

I write a array of key to play the sound when click. The code as below.

html: input type=button value="C 48" onClick="MIDI.noteOn(0, 48, 100, 0)"
input type=button value="Db 49" onClick="MIDI.noteOn(0, 49, 100, 0)"
input type=button value="D 50" onClick="MIDI.noteOn(0, 50, 100, 0)"\

But I found some of the key has no sound in firefox. And I found the missing sound is randomly for each time of load.

Further it seems this code cannot run on safari ipad air. Any one can help me on this problem. Many thanks.

js: window.onload = function () { MIDI.loadPlugin({ soundfontUrl: "soundfont/", instrument: "acoustic_guitar_nylon", callback: function () { var channel = 0, // MIDI allows for 16 channels, 0-15 instrument = 24, // nylon guitar note = 60,// middle C (C4) according to General MIDI velocity = 100, // how hard the note hits, from 0-127 delay = 0.5; // how long to hold the note, in seconds MIDI.programChange(0, instrument); } }); };

ccmjimmy avatar Jul 09 '15 11:07 ccmjimmy

I'm running into the same issue. Doesn't seem to happen in Chrome. Anyone found a fix yet?

mb2140 avatar Aug 09 '15 17:08 mb2140

Question - do you use Firebug inside Firefox? I'm beginning to think there's a connection there somehow.

mb2140 avatar Sep 28 '15 05:09 mb2140

Has this been solved already?

tjvg91 avatar Jan 24 '16 13:01 tjvg91