38 using namespace Nsound;
125 plot(
boolean show_fc,
boolean show_phase)
129 "Low Pass IIR Frequency Response\n"
130 "order = %d, fc = %0.1f Hz, sr = %0.1f Hz",
AudioStream filter(const AudioStream &x)
AudioStream filter(const AudioStream &x)
void axvline(const float64 &x_pos=0.0, const std::string &kwargs="")
Draws a vertical line at x and spans ymin to ymax (ralitive).
A class for filtering audio in the frequecy domain.
void title(const std::string &title, const std::string &kwargs="")
Add a title to the plot at the top and centered.
Axes subplot(const uint32 n_rows, const uint32 n_cols, const uint32 n, const std::string &kwargs="", Axes *sharex=NULL, Axes *sharey=NULL)
Creates a figure in a subplot, subplot(A, B, C, **kwargs)
void plot(boolean show_fc=true, boolean show_phase=false)
void plot(boolean show_phase=false)
AudioStream filter(const AudioStream &x)
FilterLowPassIIR(const float64 &sample_rate, uint32 n_poles, const float64 &frequency, const float64 &percent_ripple=0.0)
A Buffer for storing audio samples.
void makeKernel(const float64 &frequency)
void setCutoff(const float64 &fc)
Sets the cut off frequency (Hz).
void makeKernel(const float64 &frequency)