pub enum GateKind {
Select {
always: bool,
},
Compare {
always: bool,
},
Clamp {
peak_fraction_of_bound: f32,
},
Saturated {
occupancy: f32,
},
}Expand description
The four structural findings Expr::flag_gates reports.
Variants§
Select
A select() whose condition only ever went one way — so one branch is
dead and the preset renders as if the select() were the constant it
always chose.
Compare
A comparison that only ever took one value, and that no select() flag
already names (ADR-0043). Either the whole binding is the comparison
(reseed = "onset > 0.55" — a boolean param stuck at one value), or it
is a term inside a composite condition, where it is the half a
select() flag would have hidden behind the other.
Clamp
A clamp() whose inner value never approached its upper bound.
Saturated
A clamp() whose inner value sat at its upper bound for at least
SATURATED_OCCUPANCY of the run (ADR-0062). The mirror of
Clamp and the more serious of the two: a decorative
ceiling only narrows a parameter’s real range, while a ceiling that never
releases has turned the binding into a constant that no reachability
walk can see, because a gain contains no fork to observe.
The number states its own fix. 0.97 on clamp(mid * 16, 0, 0.3) means
the ceiling is reached at mid = 0.019, so the gain is 16x too hot.