本文整理汇总了Python中Filter.filterStream方法的典型用法代码示例。如果您正苦于以下问题:Python Filter.filterStream方法的具体用法?Python Filter.filterStream怎么用?Python Filter.filterStream使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Filter
的用法示例。
在下文中一共展示了Filter.filterStream方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: playFilteredSound
# 需要导入模块: import Filter [as 别名]
# 或者: from Filter import filterStream [as 别名]
def playFilteredSound():
Zero.list = []
Pole.list = []
for key in entryDictionary.keys():
entryDictionary[key].complexRoot.addToList()
soundFilter = Filter(Zero.list, Pole.list)
filteredSamples = soundFilter.filterStream(originalSamples)
snd.play(getWaveBytes(inputSoundInfo, filteredSamples))
示例2: saveSound
# 需要导入模块: import Filter [as 别名]
# 或者: from Filter import filterStream [as 别名]
def saveSound():
Zero.list = []
Pole.list = []
for key in entryDictionary.keys():
entryDictionary[key].complexRoot.addToList()
soundFilter = Filter(Zero.list, Pole.list)
filteredSamples = soundFilter.filterStream(originalSamples)
filename = tkFileDialog.asksaveasfilename(filetypes=[("Waveform Audio", ".wav")],
defaultextension='.wav')
saveSoundToFile(inputSoundInfo, filteredSamples, filename)