diff --git a/globals.js b/globals.js index f6dff75..3eef67f 100644 --- a/globals.js +++ b/globals.js @@ -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) {