pub enum ModOp {
Quantize,
Slew,
Rectify,
Hold,
}Expand description
A unary CV processor: something that sits between a modulator and its
destination. Index order matches the #modop categorical.
The four are quiver’s CV utilities that survive contact with this grammar.
The ones that did not, and why, are recorded on ModNode.
Variants§
Quantize
Snap the incoming CV to a musical scale (ScaleQuantizer).
Slew
Rate-limit it, with separate up and down times (SlewLimiter).
Rectify
Fold it into one polarity (Rectifier).
Hold
Sample it on an internal clock (Clock → SampleAndHold).
Implementations§
Source§impl ModOp
impl ModOp
Sourcepub fn from_index(i: usize) -> Self
pub fn from_index(i: usize) -> Self
From a categorical-site index.
Sourcepub fn param_sites(self) -> &'static [&'static str]
pub fn param_sites(self) -> &'static [&'static str]
The continuous trace sites this op owns, in (p0, p1) order.
Two ops carry one parameter rather than two, and the unused p1 is
not a trace site: sampling a choice nothing reads would cost prior
mass and hand MH a proposal that can never change the sound. It is
pinned to 0 by ModNode::normalized so the term still round-trips
through its own encoding.