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

Detailed Description

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

Definition at line 64 of file cc_mapper.hpp.

#include <cc_mapper.hpp>

Public Types

using Sink = void(*)(void *context, Target target, float value_su)
 The app's write into the merge layer. value_su is the curve output.
 

Public Member Functions

template<size_t N>
 CcMapper (const CcEntry< Target >(&table)[N], Sink sink, void *context)
 
template<typename Store >
uint8_t on_cc (uint8_t channel, uint8_t cc, uint8_t value, const Store &store) const
 Route one ControlChange event.
 
size_t size () const
 

Member Typedef Documentation

◆ Sink

template<typename Target >
using sbl::control::CcMapper< Target >::Sink = void (*)(void* context, Target target, float value_su)

The app's write into the merge layer. value_su is the curve output.

Definition at line 67 of file cc_mapper.hpp.

Constructor & Destructor Documentation

◆ CcMapper()

template<typename Target >
template<size_t N>
sbl::control::CcMapper< Target >::CcMapper ( const CcEntry< Target >(&)  table[N],
Sink  sink,
void *  context 
)
inline

Definition at line 70 of file cc_mapper.hpp.

Member Function Documentation

◆ on_cc()

template<typename Target >
template<typename Store >
uint8_t sbl::control::CcMapper< Target >::on_cc ( uint8_t  channel,
uint8_t  cc,
uint8_t  value,
const Store &  store 
) const
inline

Route one ControlChange event.

Call after store has taken the event. store provides float cc(uint8_t number) const in [0, 1] and supplies the other half of a 14-bit pair. Returns the number of rows dispatched.

Definition at line 81 of file cc_mapper.hpp.

References sbl::control::cam_evaluate(), sbl::control::CcEntry< Target >::cc, sbl::control::CcEntry< Target >::channel, sbl::control::CcEntry< Target >::curve, sbl::control::CcEntry< Target >::flags, sbl::control::kAnyChannel, sbl::control::Paired14, sbl::control::CcCurve::size, sbl::control::CcCurve::table, and sbl::control::CcEntry< Target >::target.

◆ size()

template<typename Target >
size_t sbl::control::CcMapper< Target >::size ( ) const
inline

Definition at line 107 of file cc_mapper.hpp.


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