diff options
author | Devine Lu Linvega <[email protected]> | 2019-06-07 11:52:09 +0200 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2019-06-07 11:52:09 +0200 |
commit | f837f30534ba4bc7cf86b7d979e112942ffd908a (patch) | |
tree | 23d3560dff46f685535103ae0e046b73a98e9211 | |
parent | f45da1ef74b0ab0efe5deca616e639396bc08c59 (diff) | |
parent | ec84af1468a4ca9289681b526d8bad40dfcbfd60 (diff) | |
download | Orca-algomech.tar.gz Orca-algomech.zip |
Merge branch 'master' into algomechalgomech
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | desktop/core/library/_keys.js | 3 |
2 files changed, 2 insertions, 4 deletions
@@ -54,11 +54,10 @@ npm start ### IO -#### Send - - `:` **midi**(channel octave note velocity length): Sends a MIDI note. - `%` **mono**(channel octave note velocity length): Sends monophonic MIDI note. - `!` **cc**(channel knob value): Sends MIDI control change. +- `&` **keys**(channel): Receive a MIDI note. - `;` **udp**: Sends UDP message. - `=` **osc**(*path*): Sends OSC message. 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] |