SynthLab SDK
|
Ultra compact timer object that is used for many different functionalities. More...
#include <synthbase.h>
Public Member Functions | |
void | resetTimer () |
reset the counter More... | |
void | setExpireSamples (uint32_t _targetValueInSamples) |
set target value More... | |
void | setExpireMilliSec (double timeMSec, double sampleRate) |
set target value | |
uint32_t | getExpireSamples () |
bool | timerExpired () |
check if we hit target More... | |
void | advanceTimer (uint32_t ticks=1) |
advance by 1 More... | |
uint32_t | getTick () |
tick count | |
Protected Attributes | |
uint32_t | counter = 0 |
the timer counter | |
uint32_t | targetValueInSamples = 0 |
curent target galue | |
Ultra compact timer object that is used for many different functionalities.
|
inline |
advance by 1
Tick count functions
|
inline |
get the expiration time in samples
|
inline |
reset the counter
Initialize
|
inline |
set target value
Set the expiration time for the counter
|
inline |
check if we hit target
query if timer has expired (elapsed)