Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
sbl::dsp::PmInput Class Reference

The PM signal, a sample a frame in and PM_SUBSTEPS values a frame out. More...

Detailed Description

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.

Definition at line 78 of file pm.hpp.

#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.
 

Member Function Documentation

◆ process() [1/2]

void sbl::dsp::PmInput::process ( float  sample,
float(&)  values[PM_SUBSTEPS] 
)
inline

One frame: a sample in, the frame's values out, the last at the frame's end.

Parameters
sampleThis frame's PM sample; a non-finite sample holds the last finite one
[out]valuesThe frame's PM_SUBSTEPS values, PM_LATENCY frames late
Context
Audio thread; real-time safe.

Definition at line 87 of file pm.hpp.

References sbl::math::is_finite(), and sbl::dsp::SincUpsampler::process().

Referenced by sbl::dsp::PmPulse::process().

◆ process() [2/2]

void sbl::dsp::PmInput::process ( float(&)  values[PM_SUBSTEPS])
inline

One frame with no PM signal: zero in. The held sample is kept for when the signal returns.

Parameters
[out]valuesThe frame's PM_SUBSTEPS values, PM_LATENCY frames late
Context
Audio thread; real-time safe.

Definition at line 98 of file pm.hpp.

References sbl::dsp::SincUpsampler::process().

◆ reset()

void sbl::dsp::PmInput::reset ( )
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().


The documentation for this class was generated from the following file: