|
Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
| Param | the app's parameter enum, its values 0 to Count - 1 |
| Count | the number of parameters |
| Sources | the number of sources that can hold a parameter |
| Merge | the merge each parameter gets: write(source, value), update(source, value) and value() |
Definition at line 52 of file param_bank.hpp.
#include <param_bank.hpp>
Public Member Functions | |
| bool | begin_update (const float(&defaults)[Count], uint8_t source) |
| void | poll (uint8_t source, Param param, float value) |
| void | write (uint8_t source, Param param, float value) |
| float | value (Param param) const |
| void | reset () |
| bool | seed_due () const |
Static Public Attributes | |
| static constexpr uint8_t | COUNT = Count |
|
inline |
Start an update. If a seed is due, write every parameter's default as source and let this update's polls take their parameters. Returns whether this update seeds.
Definition at line 63 of file param_bank.hpp.
|
inline |
A polled source's reading: it takes the parameter once it has moved, or at once in a seeding update.
Definition at line 75 of file param_bank.hpp.
References sbl::control::ParamBank< Param, Count, Sources, Merge >::value().
|
inline |
An event source's value: it takes the parameter.
Definition at line 85 of file param_bank.hpp.
References sbl::control::ParamBank< Param, Count, Sources, Merge >::value().
|
inline |
The parameter's merged value.
Definition at line 88 of file param_bank.hpp.
Referenced by sbl::control::ParamBank< Param, Count, Sources, Merge >::poll(), and sbl::control::ParamBank< Param, Count, Sources, Merge >::write().
|
inline |
Make a seed due: the next begin_update() puts every parameter back as at startup.
Definition at line 91 of file param_bank.hpp.
|
inline |
Definition at line 93 of file param_bank.hpp.
|
staticconstexpr |
Definition at line 56 of file param_bank.hpp.