VCV Rack API v2
|
Detects when a boolean changes from false to true. More...
#include <digital.hpp>
Public Types | |
enum | State : uint8_t { LOW , HIGH , UNINITIALIZED } |
enum | Event { NONE = 0 , TRIGGERED = 1 , UNTRIGGERED = -1 } |
Public Member Functions | |
void | reset () |
bool | process (bool in) |
Returns whether the input changed from false to true. | |
Event | processEvent (bool in) |
Returns TRIGGERED if the input changed from false to true, and UNTRIGGERED if the input changed from true to false. | |
bool | isHigh () |
Public Attributes | ||
union { | ||
State s = UNINITIALIZED | ||
bool state | ||
Deprecated. More... | ||
}; | ||
Detects when a boolean changes from false to true.
enum rack::dsp::BooleanTrigger::State : uint8_t |
|
inline |
|
inline |
Returns whether the input changed from false to true.
|
inline |
Returns TRIGGERED if the input changed from false to true, and UNTRIGGERED if the input changed from true to false.
|
inline |
State rack::dsp::BooleanTrigger::s = UNINITIALIZED |
bool rack::dsp::BooleanTrigger::state |
Deprecated.
union { ... } rack::dsp::BooleanTrigger |