tweak Basic demo
This commit is contained in:
parent
fc49758f40
commit
59028c871f
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue