aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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]