Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
sbl::dsp::pm::SwitchedExciter< A, B > Class Template Reference

Detailed Description

template<typename A, typename B>
class sbl::dsp::pm::SwitchedExciter< A, B >

Definition at line 19 of file switched_exciter.hpp.

#include <switched_exciter.hpp>

Public Member Functions

 SwitchedExciter (A &a, B &b)
 
void select (bool second)
 Which one plays: false the first, true the second. Takes effect at the next block.
 
bool second () const
 
void advance (uint16_t n)
 
float excite (const JunctionState &j)
 
float energy () const
 
void reset ()
 
diagram::Ports describe (diagram::Graph &g, uint8_t group, const char *name="exciter") const
 

Constructor & Destructor Documentation

◆ SwitchedExciter()

template<typename A , typename B >
sbl::dsp::pm::SwitchedExciter< A, B >::SwitchedExciter ( A &  a,
B &  b 
)
inline
Note
All public methods are ISR-safe — bounded computation, no I/O.

Definition at line 25 of file switched_exciter.hpp.

Member Function Documentation

◆ select()

template<typename A , typename B >
void sbl::dsp::pm::SwitchedExciter< A, B >::select ( bool  second)
inline

Which one plays: false the first, true the second. Takes effect at the next block.

Definition at line 28 of file switched_exciter.hpp.

References sbl::dsp::pm::SwitchedExciter< A, B >::second().

◆ second()

template<typename A , typename B >
bool sbl::dsp::pm::SwitchedExciter< A, B >::second ( ) const
inline

Definition at line 29 of file switched_exciter.hpp.

Referenced by sbl::dsp::pm::SwitchedExciter< A, B >::select().

◆ advance()

template<typename A , typename B >
void sbl::dsp::pm::SwitchedExciter< A, B >::advance ( uint16_t  n)
inline

Definition at line 31 of file switched_exciter.hpp.

◆ excite()

template<typename A , typename B >
float sbl::dsp::pm::SwitchedExciter< A, B >::excite ( const JunctionState &  j)
inline

Definition at line 39 of file switched_exciter.hpp.

◆ energy()

template<typename A , typename B >
float sbl::dsp::pm::SwitchedExciter< A, B >::energy ( ) const
inline

Definition at line 40 of file switched_exciter.hpp.

◆ reset()

template<typename A , typename B >
void sbl::dsp::pm::SwitchedExciter< A, B >::reset ( )
inline

Definition at line 42 of file switched_exciter.hpp.

◆ describe()

template<typename A , typename B >
diagram::Ports sbl::dsp::pm::SwitchedExciter< A, B >::describe ( diagram::Graph &  g,
uint8_t  group,
const char *  name = "exciter" 
) const
inline

Definition at line 47 of file switched_exciter.hpp.


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