Skip to content

Commit

Permalink
Fix for no MIDI devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontag committed Jan 6, 2016
1 parent 6be0ed6 commit 81e1ede
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/midi.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ var MIDI = function(synth) {
}

function setMidiIn(index) {
if (!selectMidi[index])
return;
var id = selectMidi[index].value;
if (midiIn)
midiIn.onmidimessage = null;
Expand Down

0 comments on commit 81e1ede

Please sign in to comment.