In this segment from Bitwig's official Grid tutorial series, the presenter works through a core modular logic problem: how to retrigger an envelope when notes change, without a dedicated trigger output. The solution is a custom change-detection circuit built entirely from patch-level reasoning.
The approach compares the current Pitch Quantize output to a slightly delayed version of itself. When the two signals are not equal, a trigger fires, retriggering the AD envelope on every new step. The logic is transparent enough to follow in real time, and the presenter talks through each decision as it happens.
A second condition is added using an And gate, so the circuit only fires while a note is held. Without it, the Pitch Quantize module keeps scanning even after the keys are released, producing unwanted triggers. The And gate solves this cleanly.
The resulting trigger source is general-purpose. Once the change-detection circuit is in place, the presenter notes it can drive other things in the patch, like per-step velocity randomization, making it a reusable building block rather than a one-off fix.