31 template <
int FilterOrder = 2>
32 static std::unique_ptr<Filter> createFilterInstance(Type filterType,
double startFrequency)
50 return std::unique_ptr<Filter>(
new Filter(filterType, startFrequency));
53 void prepare(
double sampleRate,
int numSamples,
int numChannels);
54 void setFrequency(
double frequency);
55 void setGain(
double gain);
57 void setFilterOrder(Order filterOrder);
58 void setSampleRate(
double sampleRate);
59 double filterResponse(
double sampleRate,
double x);
65 void process(std::span<const float> input, std::span<float> output,
int channel);
69 Filter(Type filterType,
double startFrequency);
71 std::vector<std::unique_ptr<IFilter>> mFilters;