chaudio.plugins.filters module

filters to remove frequency ranges, pass zones, bands, etc

class chaudio.plugins.filters.Butter(**kwargs)[source]

Bases: chaudio.plugins.Basic

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

coef(cutoff, hz, order, btype)[source]

Internal function for getting the filter coefficients

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. If btype is highpass, then anything above cutoff remains in the resulting signal (i.e. the high values pass). If btype=="lowpass", all frequencies lower than cutoff remain in the signal.
“btype”:What filter type? Possible values are “highpass” and “lowpass”.
__module__ = 'chaudio.plugins.filters'