MIDI.js
MIDI.js copied to clipboard
Some note randomly has no sound in firefox for each load
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); } }); };
I'm running into the same issue. Doesn't seem to happen in Chrome. Anyone found a fix yet?
Question - do you use Firebug inside Firefox? I'm beginning to think there's a connection there somehow.
Has this been solved already?