illogic
illogic · utilities · schema v1Combined attenuverter / math / logic utility. 4 cv inputs feed bipolar attenuverters (-1..+1); post-attenuverter outputs sum into `sum` and `diff`. Inputs in1+in2 are also gate-thresholded (>= 0.5) and combined into AND/NAND/OR; in1 alone drives a NOT.
the faceplate
4 inputs · 10 outputs · 4 params
inputs
| id | cable | what it does |
|---|---|---|
in1 | cv | Signal input 1 (CV or audio, bipolar). Scaled by the ATT1 knob, summed into SUM/DIFF, and also thresholded at 0.5 as the first logic gate (it drives AND, NAND, OR and the NOT output). control voltage (CV) |
in2 | cv | Signal input 2 (CV or audio, bipolar). Scaled by ATT2, summed into SUM/DIFF, and thresholded at 0.5 as the second logic gate (AND, NAND, OR). control voltage (CV) |
in3 | cv | Signal input 3 (CV or audio). Scaled by ATT3 and added to SUM, subtracted in DIFF. Not part of the logic block. control voltage (CV) |
in4 | cv | Signal input 4 (CV or audio). Scaled by ATT4 and added to SUM, subtracted in DIFF. Not part of the logic block. control voltage (CV) |
outputs
| id | cable | what it does |
|---|---|---|
att1 | cv | Input 1 after its attenuverter (in1 × Att1) — a per-channel attenuverted/inverted copy. control voltage (CV) |
att2 | cv | Input 2 after its attenuverter (in2 × Att2). control voltage (CV) |
att3 | cv | Input 3 after its attenuverter (in3 × Att3). control voltage (CV) |
att4 | cv | Input 4 after its attenuverter (in4 × Att4). control voltage (CV) |
sum | cv | The signed sum of all four attenuverted channels: att1 + att2 + att3 + att4. A four-input CV mixer with per-channel invert. control voltage (CV) |
diff | cv | The signed difference (att1 + att2) − (att3 + att4): channels 1–2 lifted, 3–4 subtracted. Good for anti-correlated modulation from two pairs. control voltage (CV) |
and | gate | Logic AND of inputs 1 and 2 (each thresholded at 0.5): goes high (1) only while BOTH are above threshold, otherwise low. A clean gate. gate / trigger |
nand | gate | Logic NAND — the inverse of AND: high (1) unless both inputs 1 and 2 are above threshold, in which case it goes low. gate / trigger |
or | gate | Logic OR of inputs 1 and 2: high (1) while EITHER is above threshold, low only when both are below. gate / trigger |
not | gate | Logic NOT of input 1 alone: high (1) while input 1 is below threshold, low while it is high — an inverted gate of channel 1. gate / trigger |
params
| id | label | range | default | curve |
|---|---|---|---|---|
att1_amount | Att1 | -1..1 | 1 | linear |
att2_amount | Att2 | -1..1 | 1 | linear |
att3_amount | Att3 | -1..1 | 1 | linear |
att4_amount | Att4 | -1..1 | 1 | linear |
controls
| control | what it does |
|---|---|
| Att1 | Channel-1 attenuverter (-1 to +1, default +1): scales input 1 on its way to the ATT1 output and the SUM/DIFF buses. +1 passes it through, 0 mutes it, negative values invert its sign. Does not affect the logic threshold (logic always reads the raw input). |
| Att2 | Channel-2 attenuverter (-1 to +1, default +1): scales input 2 into ATT2 and the mix buses; 0 mutes, negative inverts. The logic block still reads the raw input 2. |
| Att3 | Channel-3 attenuverter (-1 to +1, default +1): scales input 3 into ATT3, adds it to SUM and subtracts it in DIFF; 0 mutes, negative inverts. |
| Att4 | Channel-4 attenuverter (-1 to +1, default +1): scales input 4 into ATT4, adds it to SUM and subtracts it in DIFF; 0 mutes, negative inverts. |
source
illogic.ts on GitHub.