TR123e - EMCT Computing Final Project Version 1.0
Research Project Translation from gen~ to embedded Moog synth
Loading...
Searching...
No Matches
zdf_moogladder_v2.cpp File Reference

Implementation of Zero-Delay Feedback Moog Ladder Filter. More...

Functions

float clamp_float (float x, float minVal, float maxVal)
 Utility function for parameter range validation and clamping.

Detailed Description

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.

Function Documentation

◆ clamp_float()

float clamp_float ( float x,
float minVal,
float maxVal )
inline

Utility function for parameter range validation and clamping.

Parameters
xInput value to be clamped
minValMinimum allowed value (inclusive)
maxValMaximum allowed value (inclusive)
Returns
Clamped value within specified range

@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.