41 using namespace Nsound;
46 #define CERR_HEADER __FILE__ << ":" << __LINE__ << ": "
53 const float64 & frequency_Hz_low,
54 const float64 & frequency_Hz_high,
195 const float64 & frequencies_Hz_low,
196 const float64 & frequencies_Hz_high)
199 high_->
filter(x,frequencies_Hz_low), frequencies_Hz_high);
204 plot(
boolean show_fc,
boolean show_phase)
208 "Band Pass IIR Frequency Response\n"
209 "order = %d, fl = %0.1f Hz, fh = %0.1f Hz, sr = %0.1f Hz",
228 pylab.subplot(n_rows, 1, 1);
float64 getFrequency() const
float64 getFrequencyHigh() const
AudioStream filter(const AudioStream &x)
virtual ~FilterBandPassIIR()
void plot(boolean show_fc=true, boolean show_phase=false)
FilterHighPassIIR * high_
float64 getFrequency() const
A class for filtering audio in the frequecy domain.
Base class for IIR Filters, defines the interface.
A class for filtering audio in the frequecy domain.
void plot(boolean show_phase=false)
AudioStream filter(const AudioStream &x)
FilterBandPassIIR(const float64 &sample_rate, uint32 kernel_size, const float64 &frequency_Hz_low, const float64 &frequency_Hz_high, const float64 &percent_ripple=0.0)
virtual uint32 getKernelSize() const
A Buffer for storing audio samples.
float64 getFrequencyLow() const
AudioStream filter(const AudioStream &x)
Buffer getFrequencyResponse(const uint32 n_fft=8192)
AudioStream filter(const AudioStream &x)
float64 getMax() const
Returns the maximum sample value in the Buffer.