41 using namespace Nsound;
46 #define CERR_HEADER __FILE__ << ":" << __LINE__ << ": "
53 const float64 & frequency_Hz_low,
54 const float64 & frequency_Hz_high)
159 plot(
boolean show_fc,
boolean show_phase)
163 "Band Pass FIR Frequency Response\n"
164 "order = %d, fl = %0.1f Hz, fl = %0.1f Hz, sr = %0.1f Hz",
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
virtual ~FilterBandPassFIR()
void title(const std::string &title, const std::string &kwargs="")
Add a title to the plot at the top and centered.
AudioStream filter(const AudioStream &x)
FilterHighPassFIR * 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)
float64 getFrequency() const
void plot(boolean show_phase=false)
AudioStream filter(const AudioStream &x)
FilterBandPassFIR(const float64 &sample_rate, uint32 kernel_size, const float64 &frequency_Hz_low, const float64 &frequency_Hz_high)
virtual uint32 getKernelSize() const
A Buffer for storing audio samples.
float64 getFrequency() const
void plot(boolean show_fc=true, boolean show_phase=false)
AudioStream filter(const AudioStream &x)
AudioStream filter(const AudioStream &x)
float64 getFrequencyLow() const