diff options
-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 |