本文整理匯總了Python中ATK.EQ.DoubleButterworthLowPassFilter.get_coefficients_out方法的典型用法代碼示例。如果您正苦於以下問題:Python DoubleButterworthLowPassFilter.get_coefficients_out方法的具體用法?Python DoubleButterworthLowPassFilter.get_coefficients_out怎麽用?Python DoubleButterworthLowPassFilter.get_coefficients_out使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ATK.EQ.DoubleButterworthLowPassFilter
的用法示例。
在下文中一共展示了DoubleButterworthLowPassFilter.get_coefficients_out方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: filter_low
# 需要導入模塊: from ATK.EQ import DoubleButterworthLowPassFilter [as 別名]
# 或者: from ATK.EQ.DoubleButterworthLowPassFilter import get_coefficients_out [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