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::control::ParamEcho< Target > Class Template Reference

Detailed Description

template<typename Target>
class sbl::control::ParamEcho< Target >

Definition at line 38 of file param_echo.hpp.

Public Member Functions

 ParamEcho (const CcMapper< Target > &mapper)
 
void request ()
 
bool pending () const
 
template<typename ValueOf , typename Send >
size_t poll (uint8_t channel, ValueOf &&value_of, Send &&send)
 

Constructor & Destructor Documentation

◆ ParamEcho()

template<typename Target >
sbl::control::ParamEcho< Target >::ParamEcho ( const CcMapper< Target > &  mapper)
inlineexplicit

Definition at line 40 of file param_echo.hpp.

Member Function Documentation

◆ request()

template<typename Target >
void sbl::control::ParamEcho< Target >::request ( )
inline

Ask for a walk of the table. From any one context other than poll()'s.

Definition at line 43 of file param_echo.hpp.

◆ pending()

template<typename Target >
bool sbl::control::ParamEcho< Target >::pending ( ) const
inline

Whether a walk is asked for or under way.

Definition at line 46 of file param_echo.hpp.

◆ poll()

template<typename Target >
template<typename ValueOf , typename Send >
size_t sbl::control::ParamEcho< Target >::poll ( uint8_t  channel,
ValueOf &&  value_of,
Send &&  send 
)
inline

Send rows until the walk ends or send refuses one.

Parameters
channelthe MIDI channel to send on, 0 to 15
value_offloat(Target): the target's value in [0, 1]
sendbool(const sbl::midi::MidiEvent&): false when the port is full
Returns
the rows sent by this call

Definition at line 56 of file param_echo.hpp.

References sbl::control::CcEntry< Target >::cc, sbl::math::clamp01(), sbl::midi::MidiEvent::control_change(), sbl::control::CcEntry< Target >::target, and sbl::midi::to_7bit().


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