41 using namespace Nsound;
46 #define CERR_HEADER __FILE__ << ":" << __LINE__ << ": "
52 const float64 & frequency_Hz_low,
53 const float64 & frequency_Hz_high,
132 const Buffer & frequencies_Hz_low,
133 const Buffer & frequencies_Hz_high)
179 const Buffer & frequencies_Hz_low,
180 const Buffer & frequencies_Hz_high)
191 for(
uint32 i = 0; i < x_samples; ++i)
195 frequencies_Hz_low [i % n_low_freqs],
196 frequencies_Hz_high[i % n_high_freqs]);
220 const float64 & frequencies_Hz_low,
221 const float64 & frequencies_Hz_high)
229 plot(
boolean show_fc,
boolean show_phase)
233 "Band Reject IIR Frequency Response\n"
234 "order = %d, fl = %0.1f Hz, fl = %0.1f Hz, sr = %0.1f Hz",
float64 getFrequency() const
AudioStream filter(const AudioStream &x)
virtual ~FilterBandRejectIIR()
void axvline(const float64 &x_pos=0.0, const std::string &kwargs="")
Draws a vertical line at x and spans ymin to ymax (ralitive).
float64 getFrequencyHigh() const
void title(const std::string &title, const std::string &kwargs="")
Add a title to the plot at the top and centered.
float64 getFrequency() const
A class for filtering audio in the frequecy domain.
uint32 getLength() const
Returns the number of samples in the Buffer.
FilterHighPassIIR * high_
Base class for IIR Filters, defines the interface.
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)
FilterBandRejectIIR(const float64 &sample_rate, uint32 n_poles, const float64 &frequency_Hz_low, const float64 &frequency_Hz_high, const float64 &percent_ripple=0.0)
A class for filtering audio in the frequecy domain.
void plot(boolean show_fc=true, boolean show_phase=false)
void plot(boolean show_phase=false)
AudioStream filter(const AudioStream &x)
AudioStream filter(const AudioStream &x)
float64 getFrequencyLow() const
virtual uint32 getKernelSize() const
A Buffer for storing audio samples.
AudioStream filter(const AudioStream &x)