|
@@ -69,7 +69,10 @@ namespace IIR |
|
|
Filter (Coefficients<NumericType>* coefficientsToUse);
|
|
|
Filter (Coefficients<NumericType>* coefficientsToUse);
|
|
|
|
|
|
|
|
|
/** Creates a copy of another filter. */
|
|
|
/** Creates a copy of another filter. */
|
|
|
Filter (const Filter&) = default;
|
|
|
|
|
|
|
|
|
Filter (const Filter& other) : coefficients (other.coefficients) { reset(); }
|
|
|
|
|
|
|
|
|
|
|
|
/** Creates a copy of another filter. */
|
|
|
|
|
|
Filter& operator= (const Filter& other) { coefficients = other.coefficients; reset(); }
|
|
|
|
|
|
|
|
|
/** Move constructor. */
|
|
|
/** Move constructor. */
|
|
|
Filter (Filter&&) = default;
|
|
|
Filter (Filter&&) = default;
|
|
@@ -89,10 +92,9 @@ namespace IIR |
|
|
Note that this clears the processing state, but the type of filter and
|
|
|
Note that this clears the processing state, but the type of filter and
|
|
|
its coefficients aren't changed.
|
|
|
its coefficients aren't changed.
|
|
|
*/
|
|
|
*/
|
|
|
void reset() { reset (SampleType {0}); }
|
|
|
|
|
|
|
|
|
void reset() { reset ({}); }
|
|
|
|
|
|
|
|
|
/** Resets the filter's processing pipeline to a specific value.
|
|
|
/** Resets the filter's processing pipeline to a specific value.
|
|
|
|
|
|
|
|
|
@see reset
|
|
|
@see reset
|
|
|
*/
|
|
|
*/
|
|
|
void reset (SampleType resetToValue);
|
|
|
void reset (SampleType resetToValue);
|
|
@@ -156,11 +158,10 @@ namespace IIR |
|
|
Coefficients (NumericType b0, NumericType, NumericType b2, NumericType b3,
|
|
|
Coefficients (NumericType b0, NumericType, NumericType b2, NumericType b3,
|
|
|
NumericType a0, NumericType a1, NumericType a2, NumericType a3);
|
|
|
NumericType a0, NumericType a1, NumericType a2, NumericType a3);
|
|
|
|
|
|
|
|
|
/** Creates a copy of another filter. */
|
|
|
|
|
|
Coefficients (const Coefficients&);
|
|
|
Coefficients (const Coefficients&);
|
|
|
|
|
|
|
|
|
/** Creates a copy of another filter. */
|
|
|
|
|
|
|
|
|
Coefficients (Coefficients&&);
|
|
|
Coefficients& operator= (const Coefficients&);
|
|
|
Coefficients& operator= (const Coefficients&);
|
|
|
|
|
|
Coefficients& operator= (Coefficients&&);
|
|
|
|
|
|
|
|
|
/** The Coefficients structure is ref-counted, so this is a handy type that can be used
|
|
|
/** The Coefficients structure is ref-counted, so this is a handy type that can be used
|
|
|
as a pointer to one.
|
|
|
as a pointer to one.
|
|
|