39 using namespace Nsound;
49 const float64 & cutoff_frequency_Hz)
62 KernelCache::iterator itor =
hp_cache_.begin();
63 KernelCache::iterator end =
hp_cache_.end();
163 static_cast<uint32>(cutoff_frequency_Hz));
169 const_iterator itor =
hp_cache_.find(new_kernel);
181 if(cutoff_frequency_Hz < 0.10)
184 new_kernel.
b_[0] = 1.0;
217 "High Pass FIR Frequency Response\n"
218 "order = %d, fc = %0.1f Hz, sr = %0.1f Hz",
FilterLowPassFIR::KernelCache hp_cache_
void axvline(const float64 &x_pos=0.0, const std::string &kwargs="")
Draws a vertical line at x and spans ymin to ymax (ralitive).
void title(const std::string &title, const std::string &kwargs="")
Add a title to the plot at the top and centered.
Buffer getImpulseResponse()
Buffer getImpulseResponse(const uint32 n_samples=8192)
void makeKernel(const float64 &frequency1)
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)
iterator end()
Retruns the itreator at the end of the Buffer.
FilterHighPassFIR(const float64 &sample_rate, uint32 kernel_size, const float64 &cutoff_frequency_Hz)
void makeKernel(const float64 &frequency)
FloatVector::const_iterator const_iterator
iterator begin()
Retruns the itreator at the start of the Buffer.
void plot(boolean show_phase=false)
AudioStream filter(const AudioStream &x)
void plot(boolean show_fc=true, boolean show_phase=false)
A Buffer for storing audio samples.
AudioStream filter(const AudioStream &x)
A class to store calculated kernels.
virtual ~FilterHighPassFIR()
AudioStream filter(const AudioStream &x)