◆ m_lowpass_integer_add_sample()
Filter a sample.
- Parameters
-
| mli | self-pointer |
| sample | The value to filter |
◆ m_lowpass_integer_create()
| struct m_lowpass_integer * m_lowpass_integer_create |
( |
int64_t |
alpha_numerator, |
|
|
int64_t |
alpha_denominator |
|
) |
| |
Constructor.
- Note
- Taking alpha, not a cutoff frequency, here, because it's easier with the rational math.
Together, the two parameters specify the alpha value used to blend between new input and existing state. Larger values mean more influence from new input.
- Parameters
-
| alpha_numerator | The numerator of the alpha value. Must be greater than 0 and less than alpha_denominator |
| alpha_denominator | The denominator of the alpha value. Must be greater than 0. |
- Returns
- null if a parameter is out of range
◆ m_lowpass_integer_destroy()
Destroy a lowpass integer filter.
Does null checks.
- Parameters
-
| ptr_to_mli | Address of your lowpass integer filter. Will be set to zero. |
◆ m_lowpass_integer_get_state()
◆ m_lowpass_integer_is_initialized()
The documentation for this struct was generated from the following files: