80 std::vector<float>
process_buffer(std::vector<float>& inputBuffer)
override;
103 const std::vector<double>&
get_A()
const;
112 const std::vector<double>&
get_B()
const;
115 std::array<double, 3> x = {0, 0, 0};
116 std::array<double, 3> y = {0, 0, 0};
117 std::vector<double> A;
118 std::vector<double> B;
130 void updateCoefficients(
double sample_rate,
double cutoff_frequency,
double gain_db);
An abstract class that defines a basic audio filter.
Definition: BaseFilter.h:39
High-shelf and low-shelf filter for audio processing.
Definition: ShelfFilter.h:52
const std::vector< double > & get_A() const
Get the A coefficients.
Definition: ShelfFilter.cpp:121
float process_sample(float sample) override
Override of process_sample for ShelfFilter class.
Definition: ShelfFilter.cpp:75
const std::vector< double > & get_B() const
Get the B coefficients.
Definition: ShelfFilter.cpp:126
std::vector< float > process_buffer(std::vector< float > &inputBuffer) override
Processes a buffer of input samples through the filter. This is experimental and not used.
Definition: ShelfFilter.cpp:91
FilterType
An enumeration of filter types.
Definition: FilterType.h:43