diff options
author | Greg Smith <[email protected]> | 2020-09-22 14:29:57 -0500 |
---|---|---|
committer | Greg Smith <[email protected]> | 2020-09-22 14:29:57 -0500 |
commit | 92add198e51cf3fff9e2b3a91138107064b5d556 (patch) | |
tree | 15331fd84e5b7e7b71d64bc0191e59139b9760f0 /desktop | |
parent | cb672d6af5f588e448c1e8853289721d36e4623e (diff) | |
download | Orca-92add198e51cf3fff9e2b3a91138107064b5d556.tar.gz Orca-92add198e51cf3fff9e2b3a91138107064b5d556.zip |
Trigger noteon for zero-length MIDI notes
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/sources/scripts/core/io/midi.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/desktop/sources/scripts/core/io/midi.js b/desktop/sources/scripts/core/io/midi.js index 5fda0ae..d5fb1d7 100644 --- a/desktop/sources/scripts/core/io/midi.js +++ b/desktop/sources/scripts/core/io/midi.js @@ -25,14 +25,14 @@ function Midi (client) { this.run = function () { for (const id in this.stack) { const item = this.stack[id] + if (item.isPlayed === false) { + this.press(item) + } if (item.length < 1) { this.release(item, id) + } else { + item.length-- } - if (!this.stack[id]) { continue } - if (this.stack[id].isPlayed === false) { - this.press(this.stack[id]) - } - this.stack[id].length-- } } |