aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDevine Lu Linvega <[email protected]>2019-06-07 11:52:09 +0200
committerDevine Lu Linvega <[email protected]>2019-06-07 11:52:09 +0200
commitf837f30534ba4bc7cf86b7d979e112942ffd908a (patch)
tree23d3560dff46f685535103ae0e046b73a98e9211
parentf45da1ef74b0ab0efe5deca616e639396bc08c59 (diff)
parentec84af1468a4ca9289681b526d8bad40dfcbfd60 (diff)
downloadOrca-algomech.tar.gz
Orca-algomech.zip
Merge branch 'master' into algomechalgomech
-rw-r--r--README.md3
-rw-r--r--desktop/core/library/_keys.js3
2 files changed, 2 insertions, 4 deletions
diff --git a/README.md b/README.md
index 29221f0..8abafa7 100644
--- a/README.md
+++ b/README.md
@@ -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]