39 using namespace Nsound;
51 const float64 & frequency_step_per_stage,
52 const float64 & max_delay_time_seconds)
56 max_delay_(max_delay_time_seconds),
71 float64 fstep = frequency_step_per_stage;
89 frequencies_.push_back(f + fstep * static_cast<float64>(i));
98 n_stages_(copy.n_stages_),
99 max_delay_(copy.max_delay_),
103 waveform_position_(copy.waveform_position_)
216 plot(
boolean show_fc,
boolean show_phase)
220 "Phaser Frequency Response\n"
221 "sr = %0.1f Hz, f = %0.1f Hz, delay = %0.3f ms",
FilterPhaser(const float64 &sample_rate, const uint32 n_stages, const float64 &frequency, const float64 &frequency_step_per_stage, const float64 &max_delay_in_seconds)
#define M_ASSERT_VALUE(a, op, value)
FilterAllPass ** filters_
void title(const std::string &title, const std::string &kwargs="")
Add a title to the plot at the top and centered.
std::vector< float64 > frequencies_
std::vector< float64 > waveform_position_
FilterPhaser & operator=(const FilterPhaser &rhs)
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)
virtual float64 generate(const float64 &frequency)
This is a real-time method for the wavetable oscillator.
A class for filtering audio in the frequecy domain.
void plot(boolean show_phase=false)
AudioStream filter(const AudioStream &x)
A Buffer for storing audio samples.
AudioStream filter(const AudioStream &x)
void plot(boolean show_fc=false, boolean show_phase=false)
AudioStream filter(const AudioStream &x)