marvin 0.0.1
Pure C++ audio helper library
 
Loading...
Searching...
No Matches
marvin_BiquadCoefficients.h
Go to the documentation of this file.
1// ========================================================================================================
2// _______ _______ ______ ___ ___ _______ _______
3// | | | _ | __ \ | |_ _| | |
4// | | | < | |_| |_| |
5// |__|_|__|___|___|___|__|\_____/|_______|__|____|
6//
7// This file is part of the Marvin open source library and is licensed under the terms of the MIT License.
8//
9// ========================================================================================================
10
11#ifndef MARVIN_BIQUADCOEFFICIENTS_H
12#define MARVIN_BIQUADCOEFFICIENTS_H
14namespace marvin::dsp::filters {
15
21 template <FloatType SampleType>
22 struct BiquadCoefficients final {
23 SampleType a0{ static_cast<SampleType>(0.0) };
24 SampleType a1{ static_cast<SampleType>(0.0) };
25 SampleType a2{ static_cast<SampleType>(0.0) };
26 SampleType b0{ static_cast<SampleType>(0.0) };
27 SampleType b1{ static_cast<SampleType>(0.0) };
28 SampleType b2{ static_cast<SampleType>(0.0) };
29
30 template <FloatType U>
32 };
33
40 template <FloatType SampleType>
42 return (a.a0 == b.a0) &&
43 (a.a1 == b.a1) &&
44 (a.a2 == b.a2) &&
45 (a.b0 == b.b0) &&
46 (a.b1 == b.b1) &&
47 (a.b2 == b.b2);
48 }
49
56 template <FloatType SampleType>
58 return !(a == b);
59 }
60} // namespace marvin::dsp::filters
61#endif
Digital filter functions and classes.
Definition marvin_SVF.h:15
bool operator!=(const BiquadCoefficients< SampleType > &a, const BiquadCoefficients< SampleType > &b) noexcept
Definition marvin_BiquadCoefficients.h:57
bool operator==(const BiquadCoefficients< SampleType > &a, const BiquadCoefficients< SampleType > &b) noexcept
Definition marvin_BiquadCoefficients.h:41
A POD type for use with the Biquad class, and the SmoothedBiquadCoefficients class.
Definition marvin_BiquadCoefficients.h:22
SampleType a2
Definition marvin_BiquadCoefficients.h:25
SampleType b2
Definition marvin_BiquadCoefficients.h:28
friend bool operator==(const BiquadCoefficients< SampleType > &a, const BiquadCoefficients< SampleType > &b)
Definition marvin_BiquadCoefficients.h:41
SampleType b0
Definition marvin_BiquadCoefficients.h:26
SampleType a1
Definition marvin_BiquadCoefficients.h:24
SampleType a0
Definition marvin_BiquadCoefficients.h:23
SampleType b1
Definition marvin_BiquadCoefficients.h:27