aboutsummaryrefslogtreecommitdiffhomepage
path: root/desktop
diff options
context:
space:
mode:
authorneauoire <[email protected]>2019-12-15 11:44:31 -0500
committerneauoire <[email protected]>2019-12-15 11:44:31 -0500
commitcc8e2e8977490253a09d0b3de0f71c32eba95011 (patch)
tree41c76dab129fcc3411e8331e59d39d5ea3677f7d /desktop
parent768a0a61bc1fb1caac0d6d1ec65c48d37e1f4e74 (diff)
downloadOrca-cc8e2e8977490253a09d0b3de0f71c32eba95011.tar.gz
Orca-cc8e2e8977490253a09d0b3de0f71c32eba95011.zip
Allow empty OSC messages
Diffstat (limited to 'desktop')
-rw-r--r--desktop/sources/scripts/core/io/osc.js1
-rw-r--r--desktop/sources/scripts/core/library.js1
2 files changed, 0 insertions, 2 deletions
diff --git a/desktop/sources/scripts/core/io/osc.js b/desktop/sources/scripts/core/io/osc.js
index 2a605e8..635e2ea 100644
--- a/desktop/sources/scripts/core/io/osc.js
+++ b/desktop/sources/scripts/core/io/osc.js
@@ -31,7 +31,6 @@ function Osc (client) {
this.play = function ({ path, msg }) {
if (!this.socket) { console.warn('OSC', 'Unavailable socket'); return }
- if (!msg) { console.warn('OSC', 'Empty message'); return }
const oscMsg = new osc.Message(path)
for (var i = 0; i < msg.length; i++) {
oscMsg.append(client.orca.valueOf(msg.charAt(i)))
diff --git a/desktop/sources/scripts/core/library.js b/desktop/sources/scripts/core/library.js
index c43a226..361fc82 100644
--- a/desktop/sources/scripts/core/library.js
+++ b/desktop/sources/scripts/core/library.js
@@ -674,7 +674,6 @@ library['='] = function OperatorOsc (orca, x, y, passive) {
}
if (!this.hasNeighbor('*') && force === false) { return }
- if (msg === '') { return }
const path = this.listen(this.ports.path)