|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
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 |
| 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.
|
inline |
Definition at line 70 of file cc_mapper.hpp.
|
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.
|
inline |
Definition at line 107 of file cc_mapper.hpp.