tweak Basic demo
parent
fc49758f40
commit
59028c871f
|
@ -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);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue