Nsound
0.9.4
|
#include <Nsound/FilterLowPassMoogVcf.h>
Public Member Functions | |
FilterLowPassMoogVcf (const float64 &sample_rate, const float64 &cutoff_hz, const float64 &resonance) | |
virtual | ~FilterLowPassMoogVcf () |
virtual float64 | filter (const float64 &x) |
virtual float64 | filter (const float64 &x, const float64 &cutoff_hz) |
virtual float64 | filter (const float64 &x, const float64 &cutoff_hz, const float64 &resonance) |
void | plot (boolean show_fc=true, boolean show_phase=false) |
void | reset () |
void | setRealtime (bool flag) |
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) |
Buffer | getFrequencyAxis (const uint32 n_fft=8192) |
Buffer | getFrequencyResponse (const uint32 n_fft=8192) |
Buffer | getImpulseResponse (const uint32 n_samples=8192) |
virtual uint32 | getKernelSize () const |
Buffer | getPhaseResponse () |
float64 | getSampleRate () const |
void | plot (boolean show_phase=false) |
Protected Member Functions | |
void | _make_filter (float64 cutoff_hz, float64 resonance) |
Definition at line 44 of file FilterLowPassMoogVcf.h.
FilterLowPassMoogVcf::FilterLowPassMoogVcf | ( | const float64 & | sample_rate, |
const float64 & | cutoff_hz, | ||
const float64 & | resonance | ||
) |
Definition at line 45 of file FilterLowPassMoogVcf.cc.
References _make_filter().
|
inlinevirtual |
Definition at line 54 of file FilterLowPassMoogVcf.h.
Implements Nsound::Filter.
Definition at line 114 of file FilterLowPassMoogVcf.cc.
References _make_filter(), filter(), and resonance_.
|
virtual |
Definition at line 124 of file FilterLowPassMoogVcf.cc.
References _make_filter(), and filter().
Definition at line 137 of file FilterLowPassMoogVcf.cc.
References Nsound::Plotter::axvline(), cutoff_, Nsound::Filter::plot(), resonance_, Nsound::Filter::sample_rate_, Nsound::Plotter::subplot(), and Nsound::Plotter::title().
|
virtual |
Resets interal history buffer and sets the cut off frequency to the one used at declaration.
Implements Nsound::Filter.
Definition at line 171 of file FilterLowPassMoogVcf.cc.
References _make_filter(), cutoff_, oldx_, oldy0_, oldy1_, oldy2_, resonance_, y0_, y1_, y2_, and y3_.
Definition at line 71 of file FilterLowPassMoogVcf.cc.
References k_, p_, r_, and Nsound::Filter::sample_time_.
Referenced by filter(), FilterLowPassMoogVcf(), and reset().
|
inlineinherited |
|
inherited |
Definition at line 53 of file Filter.cc.
References Nsound::AudioStream::getNChannels(), Nsound::AudioStream::getSampleRate(), Nsound::Filter::is_realtime_, M_THROW, and Nsound::Filter::reset().
Referenced by Nsound::FilterHighPassIIR::filter(), Nsound::FilterHighPassFIR::filter(), Nsound::FilterLowPassFIR::filter(), Nsound::FilterLowPassIIR::filter(), Nsound::FilterTone::filter(), Nsound::FilterDelay::filter(), Nsound::FilterMovingAverage::filter(), Nsound::FilterAllPass::filter(), Nsound::FilterFlanger::filter(), Nsound::Filter::filter(), Nsound::FilterCombLowPassFeedback::filter(), Nsound::FilterBandPassVocoder::filter(), Nsound::FilterPhaser::filter(), Nsound::FilterBandRejectFIR::filter(), Nsound::FilterBandPassFIR::filter(), Nsound::FilterBandRejectIIR::filter(), Nsound::FilterBandPassIIR::filter(), Nsound::FilterStageIIR::filter(), Nsound::FilterLeastSquaresFIR::filter(), Nsound::FilterIIR::filter(), and Nsound::Filter::getImpulseResponse().
|
inherited |
Definition at line 76 of file Filter.cc.
References Nsound::Filter::filter(), Nsound::AudioStream::getNChannels(), Nsound::AudioStream::getSampleRate(), Nsound::Filter::is_realtime_, M_THROW, and Nsound::Filter::reset().
|
inherited |
Definition at line 99 of file Filter.cc.
References Nsound::Filter::filter(), Nsound::AudioStream::getNChannels(), Nsound::AudioStream::getSampleRate(), Nsound::Filter::is_realtime_, M_THROW, and Nsound::Filter::reset().
Definition at line 122 of file Filter.cc.
References Nsound::Filter::filter(), Nsound::Buffer::getLength(), Nsound::Filter::is_realtime_, and Nsound::Filter::reset().
Definition at line 140 of file Filter.cc.
References Nsound::Buffer::begin(), Nsound::Buffer::end(), Nsound::Filter::filter(), Nsound::Buffer::getLength(), Nsound::Filter::is_realtime_, and Nsound::Filter::reset().
Definition at line 161 of file Filter.cc.
References Nsound::Buffer::begin(), Nsound::Buffer::cbegin(), Nsound::Buffer::end(), Nsound::Filter::filter(), Nsound::Buffer::getLength(), Nsound::Filter::is_realtime_, and Nsound::Filter::reset().
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().
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().
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(), Nsound::FilterHighPassFIR::getImpulseResponse(), Nsound::FilterLowPassFIR::getImpulseResponse(), Nsound::FilterLeastSquaresFIR::getImpulseResponse(), Nsound::FilterIIR::getImpulseResponse(), and Nsound::Filter::getPhaseResponse().
|
inlinevirtualinherited |
Reimplemented in Nsound::FilterIIR, and Nsound::FilterTone.
Definition at line 96 of file Filter.h.
References Nsound::Filter::kernel_size_.
Referenced by Nsound::FilterBandPassIIR::FilterBandPassIIR(), Nsound::FilterBandPassFIR::plot(), Nsound::FilterBandPassIIR::plot(), and Nsound::FilterBandRejectIIR::plot().
|
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().
|
inlineinherited |
|
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(), plot(), Nsound::FilterPhaser::plot(), Nsound::FilterTone::plot(), Nsound::FilterHighPassIIR::plot(), Nsound::FilterCombLowPassFeedback::plot(), Nsound::FilterLowPassIIR::plot(), Nsound::FilterLowPassFIR::plot(), Nsound::FilterHighPassFIR::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().
|
protected |
Definition at line 83 of file FilterLowPassMoogVcf.h.
|
protected |
Definition at line 84 of file FilterLowPassMoogVcf.h.
|
protected |
Definition at line 85 of file FilterLowPassMoogVcf.h.
Referenced by _make_filter(), and filter().
|
protected |
Definition at line 86 of file FilterLowPassMoogVcf.h.
Referenced by _make_filter(), and filter().
|
protected |
Definition at line 87 of file FilterLowPassMoogVcf.h.
Referenced by _make_filter(), and filter().
|
protected |
Definition at line 89 of file FilterLowPassMoogVcf.h.
|
protected |
Definition at line 90 of file FilterLowPassMoogVcf.h.
|
protected |
Definition at line 90 of file FilterLowPassMoogVcf.h.
|
protected |
Definition at line 90 of file FilterLowPassMoogVcf.h.
|
protected |
Definition at line 90 of file FilterLowPassMoogVcf.h.
|
protected |
Definition at line 91 of file FilterLowPassMoogVcf.h.
|
protected |
Definition at line 91 of file FilterLowPassMoogVcf.h.
|
protected |
Definition at line 91 of file FilterLowPassMoogVcf.h.
|
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(), Nsound::FilterHighPassFIR::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=(), plot(), Nsound::FilterPhaser::plot(), Nsound::FilterTone::plot(), Nsound::FilterHighPassIIR::plot(), Nsound::FilterLowPassIIR::plot(), Nsound::FilterCombLowPassFeedback::plot(), Nsound::FilterLowPassFIR::plot(), Nsound::FilterHighPassFIR::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().
|
protectedinherited |
Definition at line 114 of file Filter.h.
Referenced by Nsound::FilterTone::makeKernel(), Nsound::FilterLowPassFIR::makeKernel(), and Nsound::FilterParametricEqualizer::makeKernel().
|
protectedinherited |
Definition at line 115 of file Filter.h.
Referenced by _make_filter().
|
protectedinherited |
Definition at line 116 of file Filter.h.
Referenced by Nsound::FilterLowPassFIR::filter(), Nsound::FilterLeastSquaresFIR::filter(), Nsound::FilterBandPassFIR::FilterBandPassFIR(), Nsound::FilterBandPassIIR::FilterBandPassIIR(), Nsound::FilterBandRejectIIR::FilterBandRejectIIR(), Nsound::FilterHighPassIIR::FilterHighPassIIR(), Nsound::FilterLeastSquaresFIR::FilterLeastSquaresFIR(), Nsound::FilterLowPassFIR::FilterLowPassFIR(), Nsound::FilterLowPassIIR::FilterLowPassIIR(), Nsound::FilterLeastSquaresFIR::getKernel(), Nsound::Filter::getKernelSize(), Nsound::FilterHighPassFIR::makeKernel(), Nsound::FilterLowPassFIR::makeKernel(), Nsound::FilterBandRejectFIR::makeKernel(), Nsound::FilterLeastSquaresFIR::makeKernel(), Nsound::FilterLeastSquaresFIR::operator=(), Nsound::FilterLowPassFIR::plot(), Nsound::FilterHighPassFIR::plot(), Nsound::FilterLeastSquaresFIR::plot(), Nsound::FilterBandRejectFIR::plot(), Nsound::FilterLowPassFIR::reset(), Nsound::FilterHighPassFIR::reset(), Nsound::FilterLeastSquaresFIR::reset(), Nsound::FilterLeastSquaresFIR::setKernel(), Nsound::FilterLeastSquaresFIR::setWindow(), and Nsound::FilterHighPassFIR::spectraReversal_().
|
protectedinherited |
Definition at line 118 of file Filter.h.
Referenced by Nsound::Filter::filter(), Nsound::FilterBandRejectIIR::filter(), Nsound::FilterBandRejectFIR::filter(), Nsound::Filter::getImpulseResponse(), and Nsound::Filter::setRealtime().