|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
The highest-priority active source wins. More...
The highest-priority active source wins.
Source 0 is the highest priority. Each source reports a value and whether it is active (a MIDI source while its gate is high; a knob always). With no source active, the last resolved value holds.
#include <merge.hpp>
Public Member Functions | |
| void | set (uint8_t source, float value, bool active) |
| float | value () const |
| int8_t | winner () const |
| Winning source index, or -1 if none is active (value() is holding). | |
|
inline |
Definition at line 42 of file merge.hpp.
References sbl::control::Priority< N >::value().
|
inline |
Definition at line 49 of file merge.hpp.
Referenced by sbl::control::Priority< N >::set().
|
inline |