mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-06-04 20:38:21 +00:00
FixedErrorFilter constructor.
This commit is contained in:
parent
727d4c8a1f
commit
9879af37d5
@ -89,6 +89,12 @@ private:
|
|||||||
|
|
||||||
class FixedErrorFilter {
|
class FixedErrorFilter {
|
||||||
public:
|
public:
|
||||||
|
FixedErrorFilter(
|
||||||
|
const float weight = (1.0f / 16.0f)
|
||||||
|
) : weight { weight }
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
float operator()(
|
float operator()(
|
||||||
const float lateness
|
const float lateness
|
||||||
) const {
|
) const {
|
||||||
@ -96,7 +102,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
float weight { 1.0f / 16.0f };
|
const float weight;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ClockRecovery {
|
class ClockRecovery {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user