OpenWareLaboratory
|
Public Member Functions | |
void | clock () |
void | clock (size_t steps) |
float | getBeatsPerMinute () |
Get tap tempo in BPM. More... | |
float | getFrequency () |
Get tap tempo frequency. More... | |
size_t | getPeriodInSamples () |
Get tap tempo period in samples. More... | |
bool | isOn () |
void | setBeatsPerMinute (float bpm) |
Set tap tempo in BPM. More... | |
void | setFrequency (float freq) |
Set tap tempo frequency. More... | |
void | setPeriodInSamples (size_t value) |
Set tap tempo period in samples. More... | |
TapTempo (float sr, size_t limit) | |
TapTempo (float sr, size_t min, size_t max) | |
void | trigger (bool on) |
void | trigger (bool on, int delay) |
Static Public Member Functions | |
static float | bpmToFrequency (float bpm) |
static float | bpmToSamplePeriod (float bpm, float sr) |
static TapTempo * | create (float sr, size_t max_limit) |
static TapTempo * | create (float sr, size_t min, size_t max) |
static void | destroy (TapTempo *obj) |
static float | frequencyToBpm (float freq) |
static float | frequencyToSamplePeriod (float hz, float sr) |
static float | samplePeriodToBpm (float samples, float sr) |
Protected Attributes | |
bool | ison |
const size_t | max_limit |
const size_t | min_limit |
size_t | samples |
const float | sr |
size_t | trig |
Definition at line 4 of file TapTempo.h.
|
inline |
Definition at line 13 of file TapTempo.h.
Referenced by create().
|
inline |
Definition at line 16 of file TapTempo.h.
|
inlinestatic |
Definition at line 79 of file TapTempo.h.
Referenced by bpmToSamplePeriod().
|
inlinestatic |
Definition at line 88 of file TapTempo.h.
References bpmToFrequency(), and sr.
Referenced by setBeatsPerMinute().
|
inline |
Definition at line 34 of file TapTempo.h.
|
inline |
Definition at line 38 of file TapTempo.h.
|
inlinestatic |
Definition at line 94 of file TapTempo.h.
References max_limit, sr, and TapTempo().
|
inlinestatic |
Definition at line 97 of file TapTempo.h.
References max, min, sr, and TapTempo().
|
inlinestatic |
Definition at line 100 of file TapTempo.h.
|
inlinestatic |
Definition at line 82 of file TapTempo.h.
Referenced by samplePeriodToBpm().
|
inlinestatic |
Definition at line 85 of file TapTempo.h.
References sr.
|
inline |
Get tap tempo in BPM.
Definition at line 46 of file TapTempo.h.
References samplePeriodToBpm(), samples, and sr.
|
inline |
|
inline |
|
inline |
Definition at line 19 of file TapTempo.h.
References ison.
|
inlinestatic |
Definition at line 91 of file TapTempo.h.
References frequencyToBpm(), samples, and sr.
Referenced by getBeatsPerMinute().
|
inline |
Set tap tempo in BPM.
Definition at line 52 of file TapTempo.h.
References bpmToSamplePeriod(), samples, and sr.
|
inline |
|
inline |
|
inline |
Definition at line 22 of file TapTempo.h.
|
inline |
|
protected |
Definition at line 11 of file TapTempo.h.
|
protected |
Definition at line 8 of file TapTempo.h.
Referenced by AdjustableTapTempo::adjustSpeed(), clock(), create(), and trigger().
|
protected |
Definition at line 7 of file TapTempo.h.
Referenced by AdjustableTapTempo::adjustSpeed(), clock(), and trigger().
|
protected |
Definition at line 9 of file TapTempo.h.
Referenced by AdjustableTapTempo::adjustSpeed(), getBeatsPerMinute(), getFrequency(), getPeriodInSamples(), samplePeriodToBpm(), setBeatsPerMinute(), setFrequency(), setPeriodInSamples(), and trigger().
|
protected |
Definition at line 6 of file TapTempo.h.
Referenced by bpmToSamplePeriod(), AdjustableTapTempo::create(), create(), frequencyToSamplePeriod(), getBeatsPerMinute(), getFrequency(), samplePeriodToBpm(), setBeatsPerMinute(), and setFrequency().
|
protected |
Definition at line 10 of file TapTempo.h.