worked on step-detection
adjusted iir biquad added biquad-stacking
This commit is contained in:
@@ -97,9 +97,9 @@ namespace IIR {
|
||||
|
||||
|
||||
/** configure the filter as low-pass */
|
||||
void setLowPass( const float freq, const float octaves, const float sRate ) {
|
||||
void setLowPass( const float freq, const float Q, const float sRate ) {
|
||||
double freqFact = double(freq) / double(sRate);
|
||||
setLowPass(freqFact, octaves);
|
||||
setLowPass(freqFact, Q);
|
||||
}
|
||||
|
||||
|
||||
@@ -159,9 +159,9 @@ namespace IIR {
|
||||
}
|
||||
|
||||
/** configure the filter as high-pass */
|
||||
void setHighPass( const float freq, const float octaves, const float sRate ) {
|
||||
void setHighPass( const float freq, const float Q, const float sRate ) {
|
||||
double freqFact = double(freq) / double(sRate);
|
||||
setHighPass(freqFact, octaves);
|
||||
setHighPass(freqFact, Q);
|
||||
}
|
||||
|
||||
/** configure the filter as band-pass. freqFact between ]0;0.5[ */
|
||||
@@ -189,9 +189,9 @@ namespace IIR {
|
||||
}
|
||||
|
||||
/** configure the filter as band-pass */
|
||||
void setBandPass( const float freq, const float octaves, float sRate ) {
|
||||
void setBandPass( const float freq, const float Q, float sRate ) {
|
||||
double freqFact = double(freq) / double(sRate);
|
||||
setBandPass(freqFact, octaves);
|
||||
setBandPass(freqFact, Q);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user