mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:02:55 +02:00
Better comments
This commit is contained in:
parent
d8341a0929
commit
82d13090f9
1 changed files with 4 additions and 0 deletions
|
@ -397,6 +397,8 @@ public:
|
||||||
|
|
||||||
// Fast FIR attack/lowpass filter using a 2-stage CIC filter.
|
// Fast FIR attack/lowpass filter using a 2-stage CIC filter.
|
||||||
// The step response reaches final value after N-1 samples.
|
// The step response reaches final value after N-1 samples.
|
||||||
|
// NOTE: CIC integrators intentionally overflow, using modulo arithmetic.
|
||||||
|
// See E. B. Hogenauer, "An economical class of digital filters for decimation and interpolation"
|
||||||
|
|
||||||
const int32_t CICGAIN = 0xffffffff / (CIC1 * CIC2); // Q32
|
const int32_t CICGAIN = 0xffffffff / (CIC1 * CIC2); // Q32
|
||||||
x = MULHI(x, CICGAIN);
|
x = MULHI(x, CICGAIN);
|
||||||
|
@ -462,6 +464,8 @@ public:
|
||||||
|
|
||||||
// Fast FIR attack/lowpass filter using a 2-stage CIC filter.
|
// Fast FIR attack/lowpass filter using a 2-stage CIC filter.
|
||||||
// The step response reaches final value after N-1 samples.
|
// The step response reaches final value after N-1 samples.
|
||||||
|
// NOTE: CIC integrators intentionally overflow, using modulo arithmetic.
|
||||||
|
// See E. B. Hogenauer, "An economical class of digital filters for decimation and interpolation"
|
||||||
|
|
||||||
const int32_t CICGAIN = 0xffffffff / (CIC1 * CIC2); // Q32
|
const int32_t CICGAIN = 0xffffffff / (CIC1 * CIC2); // Q32
|
||||||
x = MULHI(x, CICGAIN);
|
x = MULHI(x, CICGAIN);
|
||||||
|
|
Loading…
Reference in a new issue