|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
The PM signal, a sample a frame in and PM_SUBSTEPS values a frame out. More...
The PM signal, a sample a frame in and PM_SUBSTEPS values a frame out.
The values come through a SincUpsampler, PM_LATENCY frames late; a sample that is not finite holds the last one that was.
#include <pm.hpp>
Public Member Functions | |
| void | process (float sample, float(&values)[PM_SUBSTEPS]) |
| One frame: a sample in, the frame's values out, the last at the frame's end. | |
| void | process (float(&values)[PM_SUBSTEPS]) |
| One frame with no PM signal: zero in. The held sample is kept for when the signal returns. | |
| void | reset () |
| The held sample and the upsampler's history to zero. | |
|
inline |
One frame: a sample in, the frame's values out, the last at the frame's end.
| sample | This frame's PM sample; a non-finite sample holds the last finite one | |
| [out] | values | The frame's PM_SUBSTEPS values, PM_LATENCY frames late |
Definition at line 87 of file pm.hpp.
References sbl::math::is_finite(), and sbl::dsp::SincUpsampler::process().
Referenced by sbl::dsp::PmPulse::process().
|
inline |
One frame with no PM signal: zero in. The held sample is kept for when the signal returns.
| [out] | values | The frame's PM_SUBSTEPS values, PM_LATENCY frames late |
Definition at line 98 of file pm.hpp.
References sbl::dsp::SincUpsampler::process().
|
inline |
The held sample and the upsampler's history to zero.
Definition at line 101 of file pm.hpp.
References sbl::dsp::SincUpsampler::reset().
Referenced by sbl::dsp::PmPulse::reset().