Release all notes & pedals before slider change
This commit is contained in:
parent
30ea017682
commit
885b03df6b
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,10 @@ WebMidi.enable(function (err) { //check if WebMidi.js is enabled
|
|||
});
|
||||
|
||||
function inputChanged() {
|
||||
isKeyOn.fill(0);
|
||||
controllerChange(64, 0);
|
||||
controllerChange(67, 0);
|
||||
|
||||
midiIn.removeListener();
|
||||
midiIn = WebMidi.inputs[midiSelectSlider.value()];
|
||||
midiIn.addListener('noteon', "all", function (e) {
|
||||
|
|
Loading…
Reference in a new issue