MEAP The Library

MOZZI
MEAP The Class
C++ tips
Mozzi Reworks
mOscil
mSample
Generators
mDust
mNoise
mOperator
mSineLFO
mEnvSection
Effects
mBitcrusher
mChorus
mDigitalDelay
mFlanger
mPlateReverb
mSchroederReverb
DSP
mDelayLine
mFeedbackComb
mFeedforwardComb
mFIR
mIIR
mNaturalComb
mOnePoleLPF
mResonz
mRingz
mSchroederAllpass
mInstruments
mDrumRack
mFM4Instrument
mMarimbaInstrument
mPopInstrument
mRompler
mStringInstrument
mStringSynthInstrument
Composition
mMML
mTransitionTable
Utilities
mEventDelayMicros
mRandomDistribution

class: mEventDelayMicros


for timing events with microsecond resolution

Description

A copy of Mozzi’s EventDelay class with microsecond resolution. Functions like a kitchen timer. set() the timer to a number of microseconds, then after calling start(), ready() will return true when the time is up.

Class Methods

Constructor

mEventDelayMicros(uint64_t delay_microseconds = 0)

delay_microseconds: how long until ready() returns true after calling start()


void set(uint64_t delay_microseconds)

delay_microseconds: how long until ready() returns true after calling start()


void start()

Starts the timer


void start(int64_t delay_microseconds)

Sets the delay time (in microseconds) and starts the timer


bool ready()

Checks if the delay time has elapsed. Returns true if yes, false if no.

Example

Relevant Tutorials