aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDevine Lu Linvega <[email protected]>2018-12-09 07:40:12 +1200
committerDevine Lu Linvega <[email protected]>2018-12-09 07:40:12 +1200
commit8a2656f420de865e944139e8d07e74bb90748384 (patch)
tree48ca5356fa15a70fac895bf6bac97097e290bebc
parent7c21463e772f1c302050b849d31a425c51c44863 (diff)
downloadOrca-8a2656f420de865e944139e8d07e74bb90748384.tar.gz
Orca-8a2656f420de865e944139e8d07e74bb90748384.zip
Fixed issue with E#
-rw-r--r--README.md5
-rw-r--r--desktop/core/library/_midi.js3
-rw-r--r--desktop/sources/scripts/terminal.js2
3 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index f278688..bfd3d7d 100644
--- a/README.md
+++ b/README.md
@@ -123,6 +123,11 @@ Orca operates on a base of 36 increments. Operators using numeric values will ty
| **P** | **Q** | **R** | **S** | **T** | **U** | **V** | **W** | **X** | **Y** | **Z** | **\*** |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 |
+## TODOs
+
+- Implement MIDI CC.
+- Implement OSC.
+
## Extras
- This application supports the [Ecosystem Theme](https://github.com/hundredrabbits/Themes).
diff --git a/desktop/core/library/_midi.js b/desktop/core/library/_midi.js
index 1aa09d4..18987e4 100644
--- a/desktop/core/library/_midi.js
+++ b/desktop/core/library/_midi.js
@@ -26,6 +26,7 @@ function OperatorMidi (orca, x, y, passive) {
this.draw = false
const notes = ['C', 'c', 'D', 'd', 'E', 'F', 'f', 'G', 'g', 'A', 'a', 'B']
+
// 0 - 16
const channel = clamp(rawChannel, 0, 15)
// 1 - 9
@@ -37,6 +38,8 @@ function OperatorMidi (orca, x, y, passive) {
// 0 - 16
const length = clamp(this.listen(this.ports.haste.length, true), 1, 16)
+ if (note < 0) { return }
+
terminal.io.sendMidi(channel, octave, note, velocity, length)
}
diff --git a/desktop/sources/scripts/terminal.js b/desktop/sources/scripts/terminal.js
index 96bb9cd..8173727 100644
--- a/desktop/sources/scripts/terminal.js
+++ b/desktop/sources/scripts/terminal.js
@@ -274,7 +274,7 @@ function Terminal (orca, tile = { w: 20, h: 30 }) {
this.align = function () {
this.el.style.marginTop = (((window.innerHeight - (terminal.size.height * terminal.size.ratio)) / 2) - 20) + 'px'
}
-
+
this.resize = function () {
this.size.width = tile.w * orca.w
this.size.height = tile.h * orca.h + (tile.h * 3)