pub enum ModKind {
Show 16 variants
None,
Lfo,
Env,
Rand,
Follow,
Euclid,
Quantize,
Slew,
Rectify,
Hold,
Min,
Max,
And,
Or,
Xor,
Switch,
}Expand description
A modulation choice for StructOp::SetMod.
The first five are sources: they replace whatever is in the slot. The
eleven below them are shapers, and setting one wraps the slot’s
current term rather than discarding it — placing a quantizer on a cable
that already carries an S&H is the gesture, and asking the panel to send a
whole ModNode through StructOp::SetModTree to express it would make
the common edit the awkward one.
Variants§
None
No modulation.
Lfo
LFO.
Env
Attack/decay envelope.
Rand
Sample-and-hold random source.
Follow
Envelope follower on the owning module’s own input.
Euclid
Clocked euclidean gate pattern.
Quantize
Wrap the slot in a scale quantizer.
Slew
Wrap the slot in a slew limiter.
Rectify
Wrap the slot in a rectifier.
Hold
Wrap the slot in a clocked sample-and-hold.
Min
Combine the slot with a second modulator, taking the lower.
Max
…the higher.
And
…their gate AND.
Or
…their gate OR.
Xor
…their gate XOR.
Switch
…switching between them.