Skip to main content

Module validate

Module validate 

Source
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 in to out
  • Control binding issues: controls targeting nonexistent components

Structs§

PedalWarning
A single validation warning from a .pedal file.

Enums§

Severity
Severity of a validation warning.

Functions§

validate_pedal
Validate a parsed PedalDef and return all warnings.
validate_pedal_files
Validate .pedal files for use in build scripts.