tweak Basic demo

master
Michael Deal 2013-01-26 13:53:15 -08:00
parent fc49758f40
commit 59028c871f
1 changed files with 2 additions and 1 deletions

View File

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