nnAudio.utils.create_lowpass_filter

nnAudio.utils.create_lowpass_filter(band_center=0.5, kernelLength=256, transitionBandwidth=0.03)

Calculate the highest frequency we need to preserve and the lowest frequency we allow to pass through. Note that frequency is on a scale from 0 to 1 where 0 is 0 and 1 is Nyquist frequency of the signal BEFORE downsampling.