Expand description
Netlist-to-WDF compiler.
Compiles a parsed .pedal file into a real-time audio processor by:
- Building a circuit graph from the netlist
- Identifying clipping stages (around diode elements)
- For each stage, building a WDF binary tree via series-parallel decomposition
- Modeling active elements (transistors, opamps) as gain stages
- Chaining everything into a cascaded
PedalProcessor
Re-exports§
pub use component::Cardinality;pub use component::Component;pub use component::NeighborReq;pub use component::NeighborRole;pub use component::PinDirection;pub use boundary_rules::classify_control_path;pub use boundary_rules::classify_edges;pub use boundary_rules::classify_ports;pub use boundary_rules::smoke_classify;pub use boundary_rules::BoundaryPolicy;pub use boundary_rules::ClassifiedEdge;pub use boundary_rules::ClassifiedPort;pub use boundary_rules::Directive;pub use boundary_rules::Domain;pub use boundary_rules::PortClass;pub use neighbor_roles::completeness_errors;pub use neighbor_roles::infer_neighbor_roles;pub use neighbor_roles::InferredNeighbor;pub use validate::validate_pedal;pub use validate::validate_pedal_files;pub use validate::PedalWarning;pub use validate::Severity;
Modules§
- boundary_
rules - Centralized, derived port-classification “rules broker” (Phase 1).
- component
- Component Trait and Supporting Types
- components
- Individual component structs implementing the
Componenttrait. - neighbor_
roles - Connectivity-based neighbour-role inference and compile-time completeness validation for active devices.
- stage_
test_ helpers - Test helpers for IIR-based tone stages.
- validate
- Validation layer for
.pedalfiles.
Structs§
- Compile
Options - Compiled
Pedal - A pedal processor compiled from a
.pedalfile’s netlist. - Split
Compiled Pedal - A split compiled pedal — pre-section and post-section with an FX loop between them.
- Voltage
Warning - A single voltage compatibility warning for a component.
Enums§
- Warning
Severity - Severity of a voltage compatibility warning.
Functions§
- check_
voltage_ compatibility - Check a pedal definition for voltage compatibility at a given supply voltage.
- compile_
cache_ key - Compute a cache key for a
.pedalsource + compile options. - compile_
pedal - Compile a
.pedalcircuit into a real-time audio processor with default options. - compile_
pedal_ with_ options - Compile a
.pedalcircuit into a real-time audio processor with custom options. - compile_
split_ pedal - Compile a pedal with an FX loop, splitting at
fx_send/fx_return. - compile_
via_ spqr - Compile a
.pedalcircuit via the SPQR pipeline with default options. - compile_
via_ spqr_ with_ options - Compile a
.pedalcircuit via the SPQR pipeline.