diff options
author | neauoire <[email protected]> | 2019-12-15 11:44:31 -0500 |
---|---|---|
committer | neauoire <[email protected]> | 2019-12-15 11:44:31 -0500 |
commit | cc8e2e8977490253a09d0b3de0f71c32eba95011 (patch) | |
tree | 41c76dab129fcc3411e8331e59d39d5ea3677f7d | |
parent | 768a0a61bc1fb1caac0d6d1ec65c48d37e1f4e74 (diff) | |
download | Orca-cc8e2e8977490253a09d0b3de0f71c32eba95011.tar.gz Orca-cc8e2e8977490253a09d0b3de0f71c32eba95011.zip |
Allow empty OSC messages
-rw-r--r-- | desktop/sources/scripts/core/io/osc.js | 1 | ||||
-rw-r--r-- | desktop/sources/scripts/core/library.js | 1 |
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) |