A helper class to track the "status" of a particular Output as a poly_float value.
More...
#include <synth_module.h>
|
static constexpr float | kClearValue = INT_MIN |
| Special "clear" value indicating no status.
|
|
A helper class to track the "status" of a particular Output as a poly_float value.
The StatusOutput class allows reading and clearing of a status value from a given Output. It can accumulate values for different voices (via update calls), and also recognizes a special "clear" value.
◆ StatusOutput()
vital::StatusOutput::StatusOutput |
( |
Output * | source | ) |
|
|
inline |
Constructor.
- Parameters
-
source | The Output from which status values are read. |
◆ clear()
Clears the stored status value.
◆ isClearValue() [1/2]
force_inline bool vital::StatusOutput::isClearValue |
( |
float | value | ) |
const |
|
inline |
Checks if a given float is the special "clear" value.
- Parameters
-
- Returns
- True if the value matches the clear value.
◆ isClearValue() [2/2]
Checks if a given poly_float is the special "clear" value.
- Parameters
-
- Returns
- True if the value matches the clear value.
◆ update() [1/2]
Updates the status value without masking.
Copies the value from the source Output directly.
◆ update() [2/2]
Updates the status value using the provided mask.
Copies masked values from the source Output into the internal value.
- Parameters
-
voice_mask | A mask indicating which voices are active. |
◆ value()
Returns the current status value.
- Returns
- A poly_float containing the current status.
◆ kClearValue
float vital::StatusOutput::kClearValue = INT_MIN |
|
staticconstexpr |
Special "clear" value indicating no status.
The documentation for this class was generated from the following file:
- /Users/davidvogel/repos/VitalHelp/src/synthesis/framework/synth_module.h