Custom.h
#ifndef IIR1_CUSTOM_H
#define IIR1_CUSTOM_H
#include "Common.h"
#include "Biquad.h"
#include "Cascade.h"
#include "PoleFilter.h"
#include "State.h"
namespace Iir {
namespace Custom {
struct OnePole : public Biquad
{
void setup (double scale,
double pole,
double zero);
};
struct TwoPole : public Biquad
{
void setup (double scale,
double poleRho,
double poleTheta,
double zeroRho,
double zeroTheta);
};
template <int NSOS, class StateType = DEFAULT_STATE>
struct DllExport SOSCascade : CascadeStages<NSOS,StateType>
{
SOSCascade();
SOSCascade(const double (&sosCoefficients)[NSOS][6]) {
CascadeStages<NSOS,StateType>::setup(sosCoefficients);
};
void setup (const double (&sosCoefficients)[NSOS][6]) {
CascadeStages<NSOS,StateType>::setup(sosCoefficients);
}
};
}
}
#endif
Iir::Biquad
Definition: Biquad.h:52
Iir::Custom::SOSCascade
Definition: Custom.h:90
Iir::CascadeStages
Definition: Cascade.h:127
Iir::CascadeStages::setup
void setup(const double(&sosCoefficients)[MaxStages][6])
Definition: Cascade.h:144
Iir::Custom::TwoPole
Definition: Custom.h:75
Iir::Custom::SOSCascade::SOSCascade
SOSCascade(const double(&sosCoefficients)[NSOS][6])
Definition: Custom.h:107
Iir
Definition: Biquad.cpp:41
Iir::Custom::SOSCascade::setup
void setup(const double(&sosCoefficients)[NSOS][6])
Definition: Custom.h:120
Iir::Custom::OnePole
Definition: Custom.h:61