-
Notifications
You must be signed in to change notification settings - Fork 0
filter.SpecFilt.Function.getFilterCurveFunction
Christian d'Heureuse edited this page Jun 7, 2026
·
2 revisions
dsp-collection / filter/SpecFilt / getFilterCurveFunction
function getFilterCurveFunction(
filterType,
filterFreq1,
filterFreq2,
smoothingWidth): FilterCurveFunction;Defined in: filter/SpecFilt.ts:41
Returns a filter curve function for a specified filter type.
The band pass filter function can also be used for fading a signal.
filter type (low-pass, high-pass, etc.).
number
Filter frequency for low-pass or high-pass. Lower filter frequecy for band-pass or band-stop.
number
Upper filter frequecy for band-pass or band-stop. Ignored for low-pass or high-pass.
number
Distance between the start of the smoothing and the -6dB point. The whole smoothing region width is 2 * smoothingWidth.
A filter curve function, which returns values between 0 (=silence) and 1 (=pass unfiltered).