Expand description
The patch term: a typed tree over the v1 module palette.
The Audio/Mod sort distinction is enforced by the Rust type system itself —
an ill-sorted term (an LFO where audio is expected, a filter in a
modulation slot) is unrepresentable. The grammar prior samples these types
directly and the compiler interprets them into a quiver Patch;
there is no unvalidated intermediate representation.
All continuous parameters are normalized to [0, 1] (uniform prior
support); musical mappings (log cutoff scales, bounded resonance/feedback)
live in [crate::compile]. Discrete parameters are small enums.
Structs§
- AmpEnv
- The mandatory amplitude envelope on every voice (ADSR, normalized 0-1).
- Patch
Tree - A complete patch genome: an audio term wrapped in the mandatory voice stage (amp ADSR → VCA → limiter → stereo out, added by the compiler).
- Uid
- A stable identity for one node, independent of where it sits.
Enums§
- Audio
Node - An audio-sort term: sources at the leaves, processors and mixers above.
- Drive
Mode - Distortion shaping curve.
- Filter
Kind - Filter kind: three SVF responses plus the diode ladder.
- ModNode
- A modulation-slot term: what drives a processor’s mod input.
- ModOp
- A unary CV processor: something that sits between a modulator and its
destination. Index order matches the
#modopcategorical. - Noise
Color - Noise color; maps to
NoiseGeneratoroutput ports. - PairOp
- A binary CV combiner over two modulation terms. Index order matches the
#pairopcategorical. - Table
Shape - Wavetable shape. Index order matches the trace-site categorical and
quiver’s own
WavetableTypetable, which thetableCV selects into. - Waveform
- Oscillator / LFO waveform. Index order matches the trace-site categorical and the quiver output-port table.
Constants§
- QUANT_
ROOTS - Root-note names for the quantizer’s
rootport, which quiver reads as(cv · 11.99) as i32semitones above C. - QUANT_
SCALES - The scales quiver’s
ScaleQuantizerselects between, in its own index order — which is notquiver::modules::Scale’s. - RECT_
MODES - Rectifier polarities, in the order
rmodeselects them.
Functions§
- quant_
root_ index - Which of
QUANT_ROOTSa normalizedqrootknob selects. - quant_
scale_ index - Which of
QUANT_SCALESa normalizedqscaleknob selects — quiver’s own(cv · 6.99) as u8, so the plate and the module cannot disagree. - rect_
mode_ index - Which of
RECT_MODESa normalizedrmodeknob selects — cell centres on a three-way split, the convention the other quantized knobs use.