本文整理汇总了Python中ATK.EQ.DoubleButterworthLowPassFilter.get_coefficients_in方法的典型用法代码示例。如果您正苦于以下问题:Python DoubleButterworthLowPassFilter.get_coefficients_in方法的具体用法?Python DoubleButterworthLowPassFilter.get_coefficients_in怎么用?Python DoubleButterworthLowPassFilter.get_coefficients_in使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ATK.EQ.DoubleButterworthLowPassFilter
的用法示例。
在下文中一共展示了DoubleButterworthLowPassFilter.get_coefficients_in方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: filter_low
# 需要导入模块: from ATK.EQ import DoubleButterworthLowPassFilter [as 别名]
# 或者: from ATK.EQ.DoubleButterworthLowPassFilter import get_coefficients_in [as 别名]
def filter_low(input):
import numpy as np
output = np.zeros(input.shape, dtype=np.float64)
infilter = DoubleInPointerFilter(input, False)
infilter.set_input_sampling_rate(48000)
lowpassfilter = DoubleButterworthLowPassFilter()
lowpassfilter.set_input_sampling_rate(48000)
lowpassfilter.set_cut_frequency(1000)
lowpassfilter.set_order(5)
lowpassfilter.set_input_port(0, infilter, 0)
print lowpassfilter.get_coefficients_in()
print lowpassfilter.get_coefficients_out()
outfilter = DoubleOutPointerFilter(output, False)
outfilter.set_input_sampling_rate(48000)
outfilter.set_input_port(0, lowpassfilter, 0)
outfilter.process(input.shape[1])
return output