Implementation of a first order lag or PT1 filter. Can be used for example to smooth noisy values a bit or detect envelopes.
More...
#include <pt1filter.h>
Implementation of a first order lag or PT1 filter. Can be used for example to smooth noisy values a bit or detect envelopes.
- See also
- https://en.wikipedia.org/wiki/Low-pass_filter
◆ PT1Filter()
◆ getValue()
| double PT1Filter::getValue |
( |
| ) |
const |
|
inline |
Get the current filter output value.
- Returns
- Current filter output value.
◆ process()
Processes a new sample.
- Returns
- New filter output value.
◆ reset()
| void PT1Filter::reset |
( |
| ) |
|
Resets the filter state to default.
◆ FALLBACK_RATE
◆ m_dt_tau
◆ m_value
The documentation for this class was generated from the following files: