From b4d9385c106cf92c84d3a79c3e8c422a10e17883 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Fri, 7 Jun 2019 11:07:57 +0200 Subject: Added docs for keys --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 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. -- cgit v1.2.3 From ec84af1468a4ca9289681b526d8bad40dfcbfd60 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Fri, 7 Jun 2019 11:13:50 +0200 Subject: Added default channel for the keys operator --- desktop/core/library/_keys.js | 3 +-- 1 file changed, 1 insertion(+), 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] -- cgit v1.2.3