|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
A takeover source must reach the held value before it captures it. More...
A takeover source must reach the held value before it captures it.
When another source sets the parameter (hold()), the takeover source — a knob — is ignored until it crosses the held value or comes within the window of it. From then on the parameter follows the knob until the next hold(). Without a hold the knob drives the parameter directly.
#include <merge.hpp>
Public Member Functions | |
| Pickup (float window=0.01f) | |
| void | hold (float value) |
| Another source set the parameter; the takeover source must now reach it. | |
| float | process (float source) |
| Feed the takeover source (every tick). Returns the parameter value. | |
| bool | caught () const |
| True while the takeover source drives the parameter. | |
| float | value () const |
| void | release () |
| Hand the parameter to the takeover source now (e.g. a panel reset). | |
|
inline |
|
inline |
|
inline |