|
TR123e - EMCT Computing Final Project Version 1.0
Research Project Translation from gen~ to embedded Moog synth
|
Implementation of Zero-Delay Feedback Moog Ladder Filter. More...
#include "zdf_moogladder_v2.h"Functions | |
| float | clamp_float (float x, float minVal, float maxVal) |
| Utility function for parameter range validation and clamping. | |
Implementation of Zero-Delay Feedback Moog Ladder Filter.
This implementation provides a professional-grade digital emulation of the iconic Moog transistor ladder filter using advanced Zero-Delay Feedback topology. The system delivers analog-accurate frequency response with musical resonance characteristics and optional nonlinear saturation.
|
inline |
Utility function for parameter range validation and clamping.
| x | Input value to be clamped |
| minVal | Minimum allowed value (inclusive) |
| maxVal | Maximum allowed value (inclusive) |
@complexity O(1) - Two conditional comparisons @inline Marked inline for potential compiler optimization
Provides safe parameter validation for all filter controls, preventing numerical instability and ensuring predictable behavior across parameter ranges. Uses conditional expressions for branch-predictor friendly implementation.