aboutsummaryrefslogtreecommitdiffhomepage
path: root/desktop/sources/scripts
diff options
context:
space:
mode:
authorneauoire <[email protected]>2019-12-26 12:17:57 -0500
committerneauoire <[email protected]>2019-12-26 12:17:57 -0500
commit0eca0704ff7dc679a4bfceeb3140241fa58f929e (patch)
tree0b616d493cee4f2f88e300d63b4183ac474ef4aa /desktop/sources/scripts
parentacfd0c7c0a5e4265b0fc38b29a610aca4994969a (diff)
downloadOrca-0eca0704ff7dc679a4bfceeb3140241fa58f929e.tar.gz
Orca-0eca0704ff7dc679a4bfceeb3140241fa58f929e.zip
Fixed issue with C oprator
Diffstat (limited to 'desktop/sources/scripts')
-rw-r--r--desktop/sources/scripts/client.js2
-rw-r--r--desktop/sources/scripts/core/library.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/sources/scripts/client.js b/desktop/sources/scripts/client.js
index b8f673a..b98bfe0 100644
--- a/desktop/sources/scripts/client.js
+++ b/desktop/sources/scripts/client.js
@@ -12,7 +12,7 @@
/* global Theme */
function Client () {
- this.version = 165
+ this.version = 166
this.library = library
this.theme = new Theme(this)
diff --git a/desktop/sources/scripts/core/library.js b/desktop/sources/scripts/core/library.js
index 5a1b6f2..1889062 100644
--- a/desktop/sources/scripts/core/library.js
+++ b/desktop/sources/scripts/core/library.js
@@ -52,7 +52,7 @@ library.c = function OperatorC (orca, x, y, passive) {
this.operation = function (force = false) {
const rate = this.listen(this.ports.rate, true)
const mod = this.listen(this.ports.mod, true)
- const val = orca.f % (mod * rate)
+ const val = Math.floor(orca.f / rate) % mod
return orca.keyOf(val)
}
}