118 [[deprecated(
"use resetSpeed() instead.")]]
128 [[deprecated(
"use adjustSpeed() instead.")]]
void resetAdjustment(uint16_t s)
AdjustableTapTempo(float sr, size_t min, size_t max)
void adjustSpeed(float s)
Adjust the tap tempo period.
static AdjustableTapTempo * create(float sr, size_t min, size_t max)
static AdjustableTapTempo * create(float sr, size_t limit)
static void destroy(AdjustableTapTempo *obj)
void setRange(float value)
size_t getPeriodInSamples()
Get tap tempo period in samples.
void setBeatsPerMinute(float bpm)
Set tap tempo in BPM.
static TapTempo * create(float sr, size_t max_limit)
float getBeatsPerMinute()
Get tap tempo in BPM.
static void destroy(TapTempo *obj)
TapTempo(float sr, size_t min, size_t max)
void setPeriodInSamples(size_t value)
Set tap tempo period in samples.
static float bpmToSamplePeriod(float bpm, float sr)
static float bpmToFrequency(float bpm)
void setFrequency(float freq)
Set tap tempo frequency.
TapTempo(float sr, size_t limit)
static float samplePeriodToBpm(float samples, float sr)
float getFrequency()
Get tap tempo frequency.
static float frequencyToSamplePeriod(float hz, float sr)
void trigger(bool on, int delay)
static float frequencyToBpm(float freq)
static TapTempo * create(float sr, size_t min, size_t max)