chaudio.plugins.filters¶
filters to remove frequency ranges, pass zones, bands, etc
Classes
Butter (**kwargs) |
Butterworth filter (https://en.wikipedia.org/wiki/Butterworth_filter), the actuation function based on frequency is nearly linear (in respect to gain in dB), so there not many artifacts around the pass zone |
-
class
chaudio.plugins.filters.
Butter
(**kwargs)[source]¶ Butterworth filter (https://en.wikipedia.org/wiki/Butterworth_filter), the actuation function based on frequency is nearly linear (in respect to gain in dB), so there not many artifacts around the pass zone
-
process
(_data)[source]¶ Return the result, with some frequencies filtered out
“order”: Butterworth filter order, which should probably stay at 5
(the default)“cutoff”: Frequency, in hz
, of the cutoff. Ifbtype
ishighpass
, then anything abovecutoff
remains in the resulting signal (i.e. the high values pass). Ifbtype=="lowpass"
, all frequencies lower thancutoff
remain in the signal.“btype”: What filter type? Possible values are “highpass” and “lowpass”.
-