diff options
author | Devine Lu Linvega <[email protected]> | 2018-12-10 09:09:13 +1200 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2018-12-10 09:09:13 +1200 |
commit | 785010ea5621efd0c888ba662cc3b426b0a52881 (patch) | |
tree | b1f8b059f3a8d48789a66abdd7472db183658280 | |
parent | 34ad407f4f1eae5b10ddde22a53301bafbc18551 (diff) | |
download | Orca-785010ea5621efd0c888ba662cc3b426b0a52881.tar.gz Orca-785010ea5621efd0c888ba662cc3b426b0a52881.zip |
Fixed small issue with midi
-rw-r--r-- | desktop/core/library/_midi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/core/library/_midi.js b/desktop/core/library/_midi.js index 8a0143a..74016ad 100644 --- a/desktop/core/library/_midi.js +++ b/desktop/core/library/_midi.js @@ -21,7 +21,7 @@ function OperatorMidi (orca, x, y, passive) { let rawOctave = this.listen(this.ports.input.octave, true) let rawNote = this.listen(this.ports.input.note) - if (rawOctave === 0 || rawOctave > 8 || rawNote === '.') { return } + if (rawOctave === 0 || rawOctave > 8 || rawNote === '.' || rawChannel > 15) { return } // 0 - 16 const channel = clamp(rawChannel, 0, 15) |