Ben
07-19-2016, 12:34 AM
Hi,
I added support to configure biquad stages with shelving filter response: Link to GitHub (https://github.com/Ben-Rheinland/Audio/commit/e8783ef6b87c50e448be819c1a89e68ff129dbed).
The functions are
setLowShelf(stage, frequency, gain, slope);
and
setHighShelf(stage, frequency, gain, slope);
This picture describes what is what:
7680
The frequency describes the slopes midpoint, the amplitude at this point is always (gain/2), independent of the slope parameter.
Gain is specified in dB and can be positive or negative.
The slope parameter configures how steep the change in amplitude will be, gain=1 is maximum steepness without overshoot/undershoot in the frequency response. gain < 1 is a less steep curve, gains > 1 have even steeper transitions at the specified frequency at the cost of over-/undershoot.
Ben
I added support to configure biquad stages with shelving filter response: Link to GitHub (https://github.com/Ben-Rheinland/Audio/commit/e8783ef6b87c50e448be819c1a89e68ff129dbed).
The functions are
setLowShelf(stage, frequency, gain, slope);
and
setHighShelf(stage, frequency, gain, slope);
This picture describes what is what:
7680
The frequency describes the slopes midpoint, the amplitude at this point is always (gain/2), independent of the slope parameter.
Gain is specified in dB and can be positive or negative.
The slope parameter configures how steep the change in amplitude will be, gain=1 is maximum steepness without overshoot/undershoot in the frequency response. gain < 1 is a less steep curve, gains > 1 have even steeper transitions at the specified frequency at the cost of over-/undershoot.
Ben