aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDevine Lu Linvega <[email protected]>2018-12-09 14:04:04 +1200
committerDevine Lu Linvega <[email protected]>2018-12-09 14:04:04 +1200
commite570676e0da0871488be38eb81fdb386a5c12f89 (patch)
tree0d55bbba2adf06337bf1ee2c960910b94f82db29
parente2e80ae495001c5ecfd42bec6350c332a7b4bb0f (diff)
downloadOrca-e570676e0da0871488be38eb81fdb386a5c12f89.tar.gz
Orca-e570676e0da0871488be38eb81fdb386a5c12f89.zip
Fixed issue with high octave midi signal
-rw-r--r--desktop/core/library/_midi.js2
-rw-r--r--examples/converter.orca12
-rw-r--r--examples/octave.orca10
-rw-r--r--examples/random.orca13
4 files changed, 12 insertions, 25 deletions
diff --git a/desktop/core/library/_midi.js b/desktop/core/library/_midi.js
index a993e75..8a0143a 100644
--- a/desktop/core/library/_midi.js
+++ b/desktop/core/library/_midi.js
@@ -21,7 +21,7 @@ function OperatorMidi (orca, x, y, passive) {
let rawOctave = this.listen(this.ports.input.octave, true)
let rawNote = this.listen(this.ports.input.note)
- if (rawOctave === 0 || rawNote === '.') { return }
+ if (rawOctave === 0 || rawOctave > 8 || rawNote === '.') { return }
// 0 - 16
const channel = clamp(rawChannel, 0, 15)
diff --git a/examples/converter.orca b/examples/converter.orca
index 0d3dd4a..8991084 100644
--- a/examples/converter.orca
+++ b/examples/converter.orca
@@ -1,13 +1,13 @@
.........................................
.#.CONVERTER.#...........................
.........................................
+.#.KEY.#.................................
.........................................
-..Ac4....................................
-..g7TABCDEFG.............................
-....C....................................
-.........................................
-.........................................
-.........................................
+.kVa.....................................
.........................................
+..Vk.....................................
+.Aa4.....................................
+.e7TABCDEFG..............................
+...A.....................................
.........................................
......................................... \ No newline at end of file
diff --git a/examples/octave.orca b/examples/octave.orca
index 8afc418..e54358d 100644
--- a/examples/octave.orca
+++ b/examples/octave.orca
@@ -1,12 +1,12 @@
.........................................
.#.OCTAVE.#..............................
.........................................
+.4Cc.....................................
+.3acTCcDdEFfGgAaB........................
+..aVa....................................
.........................................
-.........................................
-...4Cc...................................
-.4D32cTCcDdEFfGgAaB......................
-...:03D..................................
-.........................................
+.4D...Va.................................
+...:03a..................................
.........................................
.........................................
.........................................
diff --git a/examples/random.orca b/examples/random.orca
deleted file mode 100644
index a27f0af..0000000
--- a/examples/random.orca
+++ /dev/null
@@ -1,13 +0,0 @@
-.........................................
-.# RANDOM #..............................
-.........................................
-.........................................
-.........................................
-..............R.7........................
-..............67TCDEFGAB.................
-..............8LFCDDEEFB.................
-.........................................
-.........................................
-.........................................
-.........................................
-.........................................