音频滤波
大部分内置滤波器可直接支持对音频信号的滤波.
In[1]:=
a = ExampleData[{"Audio", "Apollo11SmallStep"}, "Audio"]
低通滤波器.
In[2]:=
lp = LowpassFilter[a, Quantity[800, "Hz"], 101]
高通滤波器.
In[3]:=
hp = HighpassFilter[a, Quantity[1600, "Hz"], 101]
In[4]:=
Periodogram[{a, lp, hp}, 2000, PlotRange -> {{0, 3000}, Automatic},
Frame -> True, ImageSize -> Medium,
PlotLegends -> {"Original", "Lowpass", "Highpass"}]
Out[4]=
用维纳滤波器移除杂音.
In[5]:=
WienerFilter[a, 25]