|
TR123e - EMCT Computing Final Project Version 1.0
Research Project Translation from gen~ to embedded Moog synth
|
Smooth parameter interpolation for filter resonance control. More...
Go to the source code of this file.
Classes | |
| class | ResonanceRamp |
| Linear parameter interpolation engine for smooth resonance control. More... | |
Smooth parameter interpolation for filter resonance control.
This module implements sophisticated parameter smoothing for filter resonance values, preventing audio artifacts caused by abrupt control changes. The system provides configurable ramping time with sample-accurate interpolation, essential for high-Q filter applications where parameter discontinuities can cause instability, clicks, or unwanted transients in the audio output.
@technical_necessity Digital filters, particularly high-Q resonant designs like the Moog ladder filter, are sensitive to parameter changes that occur faster than their internal time constants. Abrupt resonance changes can cause:
@smoothing_theory The implementation uses linear interpolation in the parameter domain rather than the frequency domain. While this is simpler computationally, it may not provide optimal perceptual smoothing for all applications. The linear approach offers:
@mathematical_model Linear interpolation: p(t) = p₀ + (p₁ - p₀) × (t/T)
Discrete implementation: p[n] = p[n-1] + increment_per_sample Where: increment_per_sample = (target - current) / (ramp_time × sample_rate)
@performance_characteristics