Skip to main content

Module tolerance

Module tolerance 

Source
Expand description

Component tolerance randomization.

Real resistors and capacitors are ±5–20% from their nominal values. Two identical pedals sound slightly different because of this.

This module provides a seeded pseudo-random tolerance system:

  • Each “unit” (physical pedal instance) gets a seed
  • Component values are deterministically varied from nominal
  • A saved preset always sounds like the same physical pedal
  • Two instances of the same model diverge slightly

The randomization uses a simple but deterministic hash-based approach so that the same seed + component index always produces the same offset.

Structs§

ToleranceEngine
Component tolerance engine.

Enums§

ToleranceGrade
Tolerance grade for electronic components.