tweak Basic demo

This commit is contained in:
Michael Deal 2013-01-26 13:53:15 -08:00
parent fc49758f40
commit 59028c871f

View file

@ -25,8 +25,9 @@ window.onload = function () {
var note = 50; // the MIDI note var note = 50; // the MIDI note
var velocity = 127; // how hard the note hits var velocity = 127; // how hard the note hits
// play the note // play the note
MIDI.setVolume(0, 127);
MIDI.noteOn(0, note, velocity, delay); MIDI.noteOn(0, note, velocity, delay);
MIDI.noteOff(0, note, delay+0.01); MIDI.noteOff(0, note, delay + 0.75);
} }
}); });
}; };