Nsound  0.9.4
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Nsound::FilterHighPassFIR Class Reference

#include <Nsound/FilterHighPassFIR.h>

Inheritance diagram for Nsound::FilterHighPassFIR:
Inheritance graph
[legend]

Public Member Functions

 FilterHighPassFIR (const float64 &sample_rate, uint32 kernel_size, const float64 &cutoff_frequency_Hz)
 
virtual ~FilterHighPassFIR ()
 
AudioStream filter (const AudioStream &x)
 
AudioStream filter (const AudioStream &x, const float64 &frequency)
 
AudioStream filter (const AudioStream &x, const Buffer &frequencies)
 
Buffer filter (const Buffer &x)
 
Buffer filter (const Buffer &x, const float64 &frequency)
 
Buffer filter (const Buffer &x, const Buffer &frequencies)
 
virtual float64 filter (const float64 &x)
 
virtual float64 filter (const float64 &x, const float64 &frequency_Hz)
 
float64 getFrequency () const
 
Buffer getImpulseResponse ()
 
void makeKernel (const float64 &frequency)
 
void plot (boolean show_fc=true, boolean show_phase=false)
 
virtual void reset ()
 
Buffer getImpulseResponse (const uint32 n_samples=8192)
 
void plot (boolean show_phase=false)
 
void setCutoff (const float64 &fc)
 Sets the cut off frequency (Hz). More...
 
void setRealtime (bool flag)
 
Buffer getFrequencyAxis (const uint32 n_fft=8192)
 
Buffer getFrequencyResponse (const uint32 n_fft=8192)
 
virtual uint32 getKernelSize () const
 
Buffer getPhaseResponse ()
 
float64 getSampleRate () const
 

Protected Types

typedef std::set< KernelKernelCache
 

Protected Member Functions

void spectraReversal_ ()
 

Protected Attributes

FilterLowPassFIR::KernelCache hp_cache_
 
float64b_
 
float64window_
 
float64x_history_
 
float64x_ptr_
 
float64x_end_ptr_
 
float64 frequency_1_Hz_
 
KernelCache lp_cache_
 
float64 sample_rate_
 
float64 two_pi_over_sample_rate_
 
float64 sample_time_
 
uint32 kernel_size_
 
bool is_realtime_
 

Detailed Description

Definition at line 42 of file FilterHighPassFIR.h.

Member Typedef Documentation

typedef std::set<Kernel> Nsound::FilterLowPassFIR::KernelCache
protectedinherited

Definition at line 126 of file FilterLowPassFIR.h.

Constructor & Destructor Documentation

FilterHighPassFIR::FilterHighPassFIR ( const float64 sample_rate,
uint32  kernel_size,
const float64 cutoff_frequency_Hz 
)

Definition at line 46 of file FilterHighPassFIR.cc.

References Nsound::FilterLowPassFIR::frequency_1_Hz_, and reset().

50  :
51  FilterLowPassFIR(sample_rate, kernel_size, cutoff_frequency_Hz),
52  hp_cache_()
53 {
54  frequency_1_Hz_ = cutoff_frequency_Hz;
56 }
FilterLowPassFIR(const float64 &sample_rate, uint32 kernel_size, const float64 &cutoff_frequency_Hz)
FilterLowPassFIR::KernelCache hp_cache_
FilterHighPassFIR::~FilterHighPassFIR ( )
virtual

Definition at line 60 of file FilterHighPassFIR.cc.

References hp_cache_.

61 {
62  KernelCache::iterator itor = hp_cache_.begin();
63  KernelCache::iterator end = hp_cache_.end();
64 
65  while(itor != end)
66  {
67  delete [] itor->b_;
68  ++itor;
69  }
70 }
FilterLowPassFIR::KernelCache hp_cache_

Member Function Documentation

AudioStream FilterHighPassFIR::filter ( const AudioStream x)

Definition at line 74 of file FilterHighPassFIR.cc.

References Nsound::Filter::filter().

Referenced by Nsound::FilterBandPassFIR::filter(), and main().

75 {
76  return Filter::filter(x);
77 }
AudioStream filter(const AudioStream &x)
Definition: Filter.cc:53
AudioStream FilterHighPassFIR::filter ( const AudioStream x,
const float64 frequency 
)

Definition at line 81 of file FilterHighPassFIR.cc.

References Nsound::Filter::filter().

82 {
83  return Filter::filter(x, f);
84 }
AudioStream filter(const AudioStream &x)
Definition: Filter.cc:53
AudioStream FilterHighPassFIR::filter ( const AudioStream x,
const Buffer frequencies 
)

Definition at line 88 of file FilterHighPassFIR.cc.

References Nsound::Filter::filter().

89 {
90  return Filter::filter(x, frequencies);
91 }
AudioStream filter(const AudioStream &x)
Definition: Filter.cc:53
Buffer FilterHighPassFIR::filter ( const Buffer x)

Definition at line 95 of file FilterHighPassFIR.cc.

References Nsound::Filter::filter().

96 {
97  return Filter::filter(x);
98 }
AudioStream filter(const AudioStream &x)
Definition: Filter.cc:53
Buffer FilterHighPassFIR::filter ( const Buffer x,
const float64 frequency 
)

Definition at line 102 of file FilterHighPassFIR.cc.

References Nsound::Buffer::begin(), Nsound::Buffer::end(), Nsound::FilterLowPassFIR::filter(), makeKernel(), and reset().

103 {
104  // Instead of calling Filter::filter(x,f), we implement this function here
105  // to avoid calling makeKernel(f) for each sample.
106 
109 
110  Buffer::const_iterator itor = x.begin();
111  Buffer::const_iterator end = x.end();
112 
113  Buffer y;
114  while(itor != end)
115  {
116  y << FilterLowPassFIR::filter(*itor);
117  ++itor;
118  }
119 
120  return y;
121 }
iterator end()
Retruns the itreator at the end of the Buffer.
Definition: Buffer.h:348
void makeKernel(const float64 &frequency)
FloatVector::const_iterator const_iterator
Definition: Buffer.h:70
iterator begin()
Retruns the itreator at the start of the Buffer.
Definition: Buffer.h:285
A Buffer for storing audio samples.
Definition: Buffer.h:60
AudioStream filter(const AudioStream &x)
Buffer FilterHighPassFIR::filter ( const Buffer x,
const Buffer frequencies 
)

Definition at line 125 of file FilterHighPassFIR.cc.

References Nsound::Filter::filter().

126 {
127  return Filter::filter(x, frequencies);
128 }
AudioStream filter(const AudioStream &x)
Definition: Filter.cc:53
float64 FilterHighPassFIR::filter ( const float64 x)
virtual

Reimplemented from Nsound::FilterLowPassFIR.

Reimplemented in Nsound::FilterBandRejectFIR.

Definition at line 132 of file FilterHighPassFIR.cc.

References Nsound::FilterLowPassFIR::filter().

133 {
134  return FilterLowPassFIR::filter(x);
135 }
AudioStream filter(const AudioStream &x)
float64 FilterHighPassFIR::filter ( const float64 x,
const float64 frequency_Hz 
)
virtual

Implements Nsound::Filter.

Reimplemented in Nsound::FilterBandRejectFIR.

Definition at line 139 of file FilterHighPassFIR.cc.

References Nsound::FilterLowPassFIR::filter(), and makeKernel().

140 {
141  FilterHighPassFIR::makeKernel(frequency_Hz);
142  return FilterLowPassFIR::filter(x);
143 }
void makeKernel(const float64 &frequency)
AudioStream filter(const AudioStream &x)
float64 Nsound::FilterHighPassFIR::getFrequency ( ) const
inline
Buffer FilterHighPassFIR::getImpulseResponse ( )

Definition at line 147 of file FilterHighPassFIR.cc.

References Nsound::Filter::getImpulseResponse().

148 {
150 }
Buffer getImpulseResponse(const uint32 n_samples=8192)
Definition: Filter.cc:225
void FilterHighPassFIR::makeKernel ( const float64 frequency)

Definition at line 154 of file FilterHighPassFIR.cc.

References Nsound::FilterLowPassFIR::b_, Nsound::FilterLowPassFIR::Kernel::b_, hp_cache_, Nsound::Filter::kernel_size_, Nsound::FilterLowPassFIR::makeKernel(), Nsound::Filter::sample_rate_, and spectraReversal_().

Referenced by filter(), Nsound::FilterBandRejectFIR::makeKernel(), and reset().

155 {
156  // Here we create a key into the kernel cache. I'm only storing kernels
157  // with freqs chopped off to the 10th Hz. So filtering with a kernel
158  // designed at 440.1567 Hz will get stored as 440.1. Any other frequency
159  // that starts at 440.1 will not get a kernel calculated and just use the
160  // one in the cache.
161 
162  FilterLowPassFIR::Kernel new_kernel(
163  static_cast<uint32>(cutoff_frequency_Hz));
164 
165  // See if the kernel is in the cache.
166 
167  FilterLowPassFIR::
168  KernelCache::
169  const_iterator itor = hp_cache_.find(new_kernel);
170 
171  if(itor != hp_cache_.end())
172  {
173  // The kernel was found in the cache.
174  b_ = itor->b_;
175  return;
176  }
177 
178  // The filter wasn't in the cache, need to make it.
179  new_kernel.b_ = new float64[kernel_size_];
180 
181  if(cutoff_frequency_Hz < 0.10)
182  {
183  // Create All pass filter.
184  new_kernel.b_[0] = 1.0;
185 
186  b_ = new_kernel.b_;
187  }
188  else
189  {
190  float64 fc = sample_rate_ / 2.0 - cutoff_frequency_Hz;
191 
193 
194  // Now b_ is pointing to a low pass kernel, copy it into new_kernel.
195  memcpy(new_kernel.b_, b_, sizeof(float64) * kernel_size_);
196 
197  // Point to new kernel.
198  b_ = new_kernel.b_;
199 
200  // Perform the spectra inversion on the kernel to turn it into a high
201  // pass filter.
203  }
204 
205  // Add the new kernel to the cache.
206  hp_cache_.insert(new_kernel);
207 }
FilterLowPassFIR::KernelCache hp_cache_
double float64
Definition: Nsound.h:146
void makeKernel(const float64 &frequency1)
uint32 kernel_size_
Definition: Filter.h:116
A class to store calculated kernels.
float64 sample_rate_
Definition: Filter.h:113
void FilterHighPassFIR::plot ( boolean  show_fc = true,
boolean  show_phase = false 
)

Definition at line 211 of file FilterHighPassFIR.cc.

References Nsound::Plotter::axvline(), Nsound::FilterLowPassFIR::frequency_1_Hz_, Nsound::Filter::kernel_size_, Nsound::Filter::plot(), Nsound::Filter::sample_rate_, Nsound::Plotter::subplot(), and Nsound::Plotter::title().

Referenced by main().

214 {
215  char title[128];
216  sprintf(title,
217  "High Pass FIR Frequency Response\n"
218  "order = %d, fc = %0.1f Hz, sr = %0.1f Hz",
220 
221  Filter::plot(show_phase);
222 
223  Plotter pylab;
224 
225  uint32 n_rows = 1;
226 
227  if(show_phase)
228  {
229  n_rows = 2;
230  }
231 
232  if(show_fc)
233  {
234  pylab.subplot(n_rows, 1, 1);
235 
236  pylab.axvline(frequency_1_Hz_,"color='red'");
237 
238  pylab.title(title);
239  }
240 
241 }
unsigned int uint32
Definition: Nsound.h:153
void axvline(const float64 &x_pos=0.0, const std::string &kwargs="")
Draws a vertical line at x and spans ymin to ymax (ralitive).
Definition: Plotter.cc:358
void title(const std::string &title, const std::string &kwargs="")
Add a title to the plot at the top and centered.
Definition: Plotter.cc:1127
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)
Definition: Plotter.cc:1031
uint32 kernel_size_
Definition: Filter.h:116
void plot(boolean show_phase=false)
Definition: Filter.cc:262
float64 sample_rate_
Definition: Filter.h:113
void FilterHighPassFIR::reset ( )
virtual

Resets interal history buffer and sets the cut off frequency to the one used at declaration.

Implements Nsound::Filter.

Reimplemented in Nsound::FilterBandRejectFIR.

Definition at line 245 of file FilterHighPassFIR.cc.

References Nsound::FilterLowPassFIR::frequency_1_Hz_, Nsound::Filter::kernel_size_, makeKernel(), Nsound::FilterLowPassFIR::x_history_, and Nsound::FilterLowPassFIR::x_ptr_.

Referenced by filter(), FilterHighPassFIR(), and Nsound::FilterBandPassFIR::reset().

246 {
247  // Don't call FilterLowPassFIR::reset(), if we did, we would be creating
248  // a kernel twice.
249 
250  memset(x_history_, 0, sizeof(float64) * (kernel_size_ + 1));
251  x_ptr_ = x_history_;
252 
254 }
double float64
Definition: Nsound.h:146
void makeKernel(const float64 &frequency)
uint32 kernel_size_
Definition: Filter.h:116
void FilterHighPassFIR::spectraReversal_ ( )
protected

Definition at line 258 of file FilterHighPassFIR.cc.

References Nsound::FilterLowPassFIR::b_, and Nsound::Filter::kernel_size_.

Referenced by makeKernel().

259 {
260  for(uint32 i = 0; i < kernel_size_; ++i)
261  {
262  if(i % 2)
263  {
264  b_[i] *= -1.00;
265  }
266  }
267 }
unsigned int uint32
Definition: Nsound.h:153
uint32 kernel_size_
Definition: Filter.h:116
Buffer Filter::getImpulseResponse ( const uint32  n_samples = 8192)
inherited

Definition at line 225 of file Filter.cc.

References Nsound::Filter::filter(), Nsound::Filter::is_realtime_, and Nsound::Filter::reset().

Referenced by Nsound::Filter::getFrequencyResponse(), getImpulseResponse(), Nsound::FilterLowPassFIR::getImpulseResponse(), Nsound::FilterLeastSquaresFIR::getImpulseResponse(), Nsound::FilterIIR::getImpulseResponse(), and Nsound::Filter::getPhaseResponse().

226 {
227  if(!is_realtime_) reset();
228 
229  Buffer response(n_samples);
230 
231  response << filter(1.0);
232 
233  for(uint32 i = 1; i < n_samples; ++i)
234  {
235  response << filter(0.0);
236  }
237 
238  if(!is_realtime_) reset();
239 
240  return response;
241 }
unsigned int uint32
Definition: Nsound.h:153
virtual void reset()=0
AudioStream filter(const AudioStream &x)
Definition: Filter.cc:53
bool is_realtime_
Definition: Filter.h:118
A Buffer for storing audio samples.
Definition: Buffer.h:60
void Filter::plot ( boolean  show_phase = false)
inherited

Definition at line 262 of file Filter.cc.

References Nsound::Plotter::figure(), Nsound::Buffer::getdB(), Nsound::Filter::getFrequencyAxis(), Nsound::Filter::getFrequencyResponse(), Nsound::Buffer::getMax(), Nsound::Filter::getPhaseResponse(), Nsound::Plotter::plot(), Nsound::Plotter::subplot(), Nsound::Plotter::xlabel(), Nsound::Plotter::ylabel(), and Nsound::Plotter::ylim().

Referenced by main(), Nsound::FilterLowPassMoogVcf::plot(), Nsound::FilterPhaser::plot(), Nsound::FilterTone::plot(), Nsound::FilterHighPassIIR::plot(), Nsound::FilterCombLowPassFeedback::plot(), Nsound::FilterLowPassIIR::plot(), Nsound::FilterLowPassFIR::plot(), plot(), Nsound::FilterAllPass::plot(), Nsound::FilterBandPassVocoder::plot(), Nsound::FilterBandPassFIR::plot(), Nsound::FilterLeastSquaresFIR::plot(), Nsound::FilterFlanger::plot(), Nsound::FilterBandRejectFIR::plot(), Nsound::FilterBandPassIIR::plot(), Nsound::FilterBandRejectIIR::plot(), and Nsound::FilterParametricEqualizer::plot().

263 {
264  Buffer x = getFrequencyAxis();
266 
267  Plotter pylab;
268 
269  pylab.figure();
270 
271  uint32 n_rows = 1;
272  uint32 n_cols = 1;
273 
274  if(show_phase)
275  {
276  n_rows = 2;
277  }
278 
279  pylab.subplot(n_rows, n_cols, 1);
280 
281  // Frequency response
282  pylab.plot(x,fr, "blue");
283 
284  pylab.xlabel("Frequency (Hz)");
285  pylab.ylabel("Frequency Response (dB)");
286 
287  // Phase response
288  if(show_phase)
289  {
290  pylab.subplot(n_rows, n_cols, 2);
291 
292  Buffer pr = getPhaseResponse().getdB();
293 
294  pylab.plot(x,pr);
295 
296  pylab.xlabel("Frequency (Hz)");
297  pylab.ylabel("Phase Response (dB)");
298  }
299 
300  float64 ymax = fr.getMax();
301  float64 height = ymax - -60.0;
302 
303  pylab.ylim(-60.0, ymax + 0.05 * height);
304 }
unsigned int uint32
Definition: Nsound.h:153
void xlabel(const std::string &label, const std::string &kwargs="")
Add a label x axis.
Definition: Plotter.cc:1154
void plot(const Buffer &y, const std::string &fmt="", const std::string &kwargs="")
Plots the Buffer on the current figure.
Definition: Plotter.cc:765
void figure(const std::string &kwargs="") const
Creates a new figure window to plot in.
Definition: Plotter.cc:455
Buffer getPhaseResponse()
Definition: Filter.cc:245
double float64
Definition: Nsound.h:146
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)
Definition: Plotter.cc:1031
void ylim(const float64 &ymin, const float64 &ymax)
Definition: Plotter.cc:422
Buffer getFrequencyAxis(const uint32 n_fft=8192)
Definition: Filter.cc:185
void ylabel(const std::string &label, const std::string &kwargs="")
Add a label y axis.
Definition: Plotter.cc:1180
A Buffer for storing audio samples.
Definition: Buffer.h:60
Buffer getFrequencyResponse(const uint32 n_fft=8192)
Definition: Filter.cc:210
float64 getMax() const
Returns the maximum sample value in the Buffer.
Definition: Buffer.cc:951
Buffer getdB() const
Returns the Buffer in dB.
Definition: Buffer.h:487
void FilterLowPassFIR::setCutoff ( const float64 fc)
inherited

Sets the cut off frequency (Hz).

Definition at line 366 of file FilterLowPassFIR.cc.

References Nsound::FilterLowPassFIR::frequency_1_Hz_, and Nsound::FilterLowPassFIR::reset().

367 {
368  frequency_1_Hz_ = fc;
369  reset();
370 }
void Nsound::Filter::setRealtime ( bool  flag)
inlineinherited

Definition at line 57 of file Filter.h.

References Nsound::Filter::is_realtime_.

57 {is_realtime_ = flag;}
bool is_realtime_
Definition: Filter.h:118
Buffer Filter::getFrequencyAxis ( const uint32  n_fft = 8192)
inherited

Definition at line 185 of file Filter.cc.

References Nsound::FFTransform::roundUp2(), and Nsound::Filter::sample_rate_.

Referenced by main(), Nsound::Filter::plot(), and Nsound::FilterIIR::savePlot().

186 {
187  uint32 fft_chunk_size = FFTransform::roundUp2(
188  static_cast<int32>(n_fft));
189 
190  uint32 n_samples = fft_chunk_size / 2 + 1;
191 
192  float64 f_step = (1.0 / (static_cast<float64>(fft_chunk_size) / 2.0))
193  * (sample_rate_ / 2.0);
194 
195  Buffer f_axis;
196 
197  float64 f = 0.0;
198 
199  for(uint32 i = 0; i < n_samples; ++i)
200  {
201  f_axis << f;
202  f += f_step;
203  }
204 
205  return f_axis;
206 };
unsigned int uint32
Definition: Nsound.h:153
double float64
Definition: Nsound.h:146
static int32 roundUp2(int32 raw)
Returns nearest power of 2 >= raw.
Definition: FFTransform.cc:274
A Buffer for storing audio samples.
Definition: Buffer.h:60
float64 sample_rate_
Definition: Filter.h:113
Buffer Filter::getFrequencyResponse ( const uint32  n_fft = 8192)
inherited

Definition at line 210 of file Filter.cc.

References Nsound::FFTransform::fft(), Nsound::Filter::getImpulseResponse(), and Nsound::Filter::sample_rate_.

Referenced by Nsound::FilterBandPassIIR::FilterBandPassIIR(), FilterLeastSquaresFIR_UnitTest(), Nsound::FilterIIR::getRMS(), main(), Nsound::Filter::plot(), and Nsound::FilterIIR::savePlot().

211 {
213 
214 //~ fft.setWindow(HANNING);
215 
216  FFTChunkVector vec;
217 
218  vec = fft.fft(getImpulseResponse(), n_fft);
219 
220  return vec[0].getMagnitude();
221 }
Buffer getImpulseResponse(const uint32 n_samples=8192)
Definition: Filter.cc:225
A Class that performes the Fast Fouier Transfrom on a Buffer.
Definition: FFTransform.h:57
std::vector< FFTChunk > FFTChunkVector
Definition: FFTChunk.h:119
float64 sample_rate_
Definition: Filter.h:113
virtual uint32 Nsound::Filter::getKernelSize ( ) const
inlinevirtualinherited
Buffer Filter::getPhaseResponse ( )
inherited

Definition at line 245 of file Filter.cc.

References Nsound::FFTransform::fft(), Nsound::Filter::getImpulseResponse(), Nsound::Buffer::getLength(), Nsound::Filter::sample_rate_, and Nsound::Buffer::subbuffer().

Referenced by Nsound::Filter::plot().

246 {
247  uint32 n_samples = static_cast<uint32>(sample_rate_ * 2);
248 
249  FFTransform fft(n_samples);
250 
251  FFTChunkVector vec;
252 
253  vec = fft.fft(getImpulseResponse(), n_samples);
254 
255  Buffer phase = vec[0].getPhase();
256 
257  return phase.subbuffer(0, phase.getLength() / 2 + 1);
258 }
Buffer subbuffer(uint32 start_index, uint32 n_samples=0) const
Slice the Buffer.
Definition: Buffer.cc:2073
unsigned int uint32
Definition: Nsound.h:153
uint32 getLength() const
Returns the number of samples in the Buffer.
Definition: Buffer.h:587
Buffer getImpulseResponse(const uint32 n_samples=8192)
Definition: Filter.cc:225
A Class that performes the Fast Fouier Transfrom on a Buffer.
Definition: FFTransform.h:57
A Buffer for storing audio samples.
Definition: Buffer.h:60
std::vector< FFTChunk > FFTChunkVector
Definition: FFTChunk.h:119
float64 sample_rate_
Definition: Filter.h:113
float64 Nsound::Filter::getSampleRate ( ) const
inlineinherited

Definition at line 102 of file Filter.h.

References Nsound::Filter::sample_rate_.

102 { return sample_rate_; };
float64 sample_rate_
Definition: Filter.h:113

Member Data Documentation

FilterLowPassFIR::KernelCache Nsound::FilterHighPassFIR::hp_cache_
protected

Definition at line 99 of file FilterHighPassFIR.h.

Referenced by makeKernel(), and ~FilterHighPassFIR().

float64* Nsound::FilterLowPassFIR::b_
protectedinherited
float64* Nsound::FilterLowPassFIR::window_
protectedinherited
float64* Nsound::FilterLowPassFIR::x_history_
protectedinherited
float64* Nsound::FilterLowPassFIR::x_ptr_
protectedinherited
float64* Nsound::FilterLowPassFIR::x_end_ptr_
protectedinherited
float64 Nsound::FilterLowPassFIR::frequency_1_Hz_
protectedinherited
KernelCache Nsound::FilterLowPassFIR::lp_cache_
protectedinherited
float64 Nsound::Filter::sample_rate_
protectedinherited

Definition at line 113 of file Filter.h.

Referenced by Nsound::FilterPhaser::filter(), Nsound::FilterCombLowPassFeedback::filter(), Nsound::FilterDelay::filter(), Nsound::FilterAllPass::FilterAllPass(), Nsound::FilterCombLowPassFeedback::FilterCombLowPassFeedback(), Nsound::FilterDelay::FilterDelay(), Nsound::FilterFlanger::FilterFlanger(), Nsound::FilterPhaser::FilterPhaser(), Nsound::FilterSlinky::FilterSlinky(), Nsound::Filter::getFrequencyAxis(), Nsound::Filter::getFrequencyResponse(), Nsound::Filter::getPhaseResponse(), Nsound::Filter::getSampleRate(), Nsound::FilterStageIIR::makeIIRKernelHelper(), makeKernel(), Nsound::FilterStageIIR::makeKernel(), Nsound::FilterBandPassVocoder::makeKernel(), Nsound::FilterLeastSquaresFIR::makeKernel(), Nsound::FilterParametricEqualizer::makeKernel(), Nsound::FilterPhaser::operator=(), Nsound::FilterLeastSquaresFIR::operator=(), Nsound::FilterFlanger::operator=(), Nsound::FilterIIR::operator=(), Nsound::FilterLowPassMoogVcf::plot(), Nsound::FilterPhaser::plot(), Nsound::FilterTone::plot(), Nsound::FilterHighPassIIR::plot(), Nsound::FilterLowPassIIR::plot(), Nsound::FilterCombLowPassFeedback::plot(), Nsound::FilterLowPassFIR::plot(), plot(), Nsound::FilterAllPass::plot(), Nsound::FilterBandPassFIR::plot(), Nsound::FilterLeastSquaresFIR::plot(), Nsound::FilterFlanger::plot(), Nsound::FilterBandRejectFIR::plot(), Nsound::FilterBandRejectIIR::plot(), Nsound::FilterBandPassIIR::plot(), Nsound::FilterParametricEqualizer::plot(), Nsound::FilterLowPassIIR::setCutoff(), and Nsound::FilterLeastSquaresFIR::setWindow().

float64 Nsound::Filter::two_pi_over_sample_rate_
protectedinherited
float64 Nsound::Filter::sample_time_
protectedinherited

Definition at line 115 of file Filter.h.

Referenced by Nsound::FilterLowPassMoogVcf::_make_filter().

uint32 Nsound::Filter::kernel_size_
protectedinherited
bool Nsound::Filter::is_realtime_
protectedinherited

The documentation for this class was generated from the following files: