Corrected a bug in the one pole filter
This commit is contained in:
parent
ed2536b5ce
commit
144916bd39
1 changed files with 6 additions and 0 deletions
|
|
@ -89,6 +89,9 @@ public:
|
||||||
while (in < sentinel) {
|
while (in < sentinel) {
|
||||||
setGain(*g);
|
setGain(*g);
|
||||||
oneLowpass(in, out);
|
oneLowpass(in, out);
|
||||||
|
in++;
|
||||||
|
out++;
|
||||||
|
g++;
|
||||||
}
|
}
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
@ -103,6 +106,9 @@ public:
|
||||||
while (in < sentinel) {
|
while (in < sentinel) {
|
||||||
setGain(*g);
|
setGain(*g);
|
||||||
oneLowpass(in, out);
|
oneLowpass(in, out);
|
||||||
|
in++;
|
||||||
|
out++;
|
||||||
|
g++;
|
||||||
}
|
}
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue