diff options
author | Devine Lu Linvega <[email protected]> | 2019-04-24 10:50:06 +0900 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2019-04-24 10:50:06 +0900 |
commit | c47e937c634d8413d0734919367cf45c0a596c8f (patch) | |
tree | 7c0847fddee84f64711231927382f61b63a1dddd | |
parent | bd73ab169da6056d00b92df58e7f16990008df97 (diff) | |
download | Orca-c47e937c634d8413d0734919367cf45c0a596c8f.tar.gz Orca-c47e937c634d8413d0734919367cf45c0a596c8f.zip |
Repaired C
-rw-r--r-- | desktop/core/library/c.js | 2 | ||||
-rw-r--r-- | examples/misc/io.orca | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/desktop/core/library/c.js b/desktop/core/library/c.js index 47acc8b..51a70e3 100644 --- a/desktop/core/library/c.js +++ b/desktop/core/library/c.js @@ -15,7 +15,7 @@ function OperatorC (orca, x, y, passive) { this.run = function () { const rate = this.listen(this.ports.haste.rate, true, 1) const mod = this.listen(this.ports.input.mod, true) - const val = orca.f % ((mod || 8) * rate) + const val = (Math.floor(orca.f / rate) % (mod || 8)) const res = orca.keyOf(val) this.output(`${res}`, false, true) } diff --git a/examples/misc/io.orca b/examples/misc/io.orca new file mode 100644 index 0000000..8a26ea0 --- /dev/null +++ b/examples/misc/io.orca @@ -0,0 +1,16 @@ +......................................... +.#.KOMBINE.#............................. +......................................... +.4C4.#OCTA#.2C4.#NOTE#..1C4.#VELO#....... +..34T3454....24TCDEF.....04T0123......... +..oV5........nVD.........vV3............. +......................................... +......................................... +.#.KONKAT.#.............................. +......................................... +.3Konv................................... +...5D3................................... +......................................... +......................................... +......................................... +.........................................
\ No newline at end of file |