diff options
author | Devine Lu Linvega <[email protected]> | 2019-06-07 11:13:50 +0200 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2019-06-07 11:13:50 +0200 |
commit | ec84af1468a4ca9289681b526d8bad40dfcbfd60 (patch) | |
tree | e2940417b13492e93a2b0ab3321a76ba4ffa9041 | |
parent | b4d9385c106cf92c84d3a79c3e8c422a10e17883 (diff) | |
download | Orca-ec84af1468a4ca9289681b526d8bad40dfcbfd60.tar.gz Orca-ec84af1468a4ca9289681b526d8bad40dfcbfd60.zip |
Added default channel for the keys operator
-rw-r--r-- | desktop/core/library/_keys.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/core/library/_keys.js b/desktop/core/library/_keys.js index 6b181fb..634670c 100644 --- a/desktop/core/library/_keys.js +++ b/desktop/core/library/_keys.js @@ -8,12 +8,11 @@ export default function OperatorKeys (orca, x, y, passive) { this.name = 'keys' this.info = 'Receive MIDI note' - this.ports.channel = { x: 1, y: 0, clamp: { min: 0, max: 16 } } + this.ports.channel = { x: 1, y: 0, clamp: { min: 0, max: 16 }, default: '0' } this.ports.output = { x: 0, y: 1 } this.operation = function (force = false) { const channel = this.listen(this.ports.channel, true) - if (channel === '.') { return } const id = terminal.io.midi.keys[channel] |