Expand description
Validation layer for .pedal files.
Runs at compile time (not runtime) to catch common errors in .pedal
circuit definitions. Collects warnings without hard-failing — the goal
is to surface issues that would otherwise be silently ignored by the
compiler pipeline.
§Categories of warnings
- Component reference errors: nets/controls referencing components that don’t exist
- Invalid pin names: using pins that don’t exist for a given component type
- Unrecognized modulation targets: LFO/envelope outputs going to pins the compiler skips
- Suspicious component values: zero-ohm resistors, negative caps, etc.
- Duplicate component IDs: two components sharing the same name
- Orphaned components: components declared but never wired into any net
- Missing signal path: no route from
intoout - Control binding issues: controls targeting nonexistent components
Structs§
- Pedal
Warning - A single validation warning from a
.pedalfile.
Enums§
- Severity
- Severity of a validation warning.
Functions§
- validate_
pedal - Validate a parsed
PedalDefand return all warnings. - validate_
pedal_ files - Validate
.pedalfiles for use in build scripts.