|
TracktionEngine
|
Uses the SoundTouch BPMDetect class to guess the tempo of some audio. More...
#include <tracktion_TempoDetect.h>
Public Member Functions | |
| TempoDetect (int numChannels_, double sampleRate) | |
| float | processReader (juce::AudioFormatReader &reader) |
| Processes an entire AudioFormatReader returning the tempo for it. | |
| float | processAndDetect (const float **const inputSamples, int numSamples) |
| Processes a block of audio returning the tempo for it. | |
| float | getBpm () const |
| Returns the last BPM detected. | |
| bool | isBpmSensible () const |
| void | processSection (juce::AudioBuffer< float > &buffer, int numSamplesToProcess) |
| Processes a non-interleaved buffer section. | |
| float | finishAndDetect () |
| Completes the detection process and returns the BPM. | |
| void | processSection (const float *const *inputSamples, int numSamples) |
Static Public Member Functions | |
| static juce::Range< float > | getSensibleRange () |
Uses the SoundTouch BPMDetect class to guess the tempo of some audio.
| tracktion::engine::TempoDetect::TempoDetect | ( | int | numChannels_, |
| double | sampleRate | ||
| ) |
| float tracktion::engine::TempoDetect::processReader | ( | juce::AudioFormatReader & | reader | ) |
Processes an entire AudioFormatReader returning the tempo for it.
References finishAndDetect(), and processSection().
| float tracktion::engine::TempoDetect::processAndDetect | ( | const float **const | inputSamples, |
| int | numSamples | ||
| ) |
Processes a block of audio returning the tempo for it.
References processSection().
| float tracktion::engine::TempoDetect::getBpm | ( | ) | const |
Returns the last BPM detected.
| bool tracktion::engine::TempoDetect::isBpmSensible | ( | ) | const |
References getSensibleRange().
|
static |
Referenced by isBpmSensible().
| void tracktion::engine::TempoDetect::processSection | ( | juce::AudioBuffer< float > & | buffer, |
| int | numSamplesToProcess | ||
| ) |
Processes a non-interleaved buffer section.
References processSection().
Referenced by processAndDetect(), processReader(), and processSection().
| float tracktion::engine::TempoDetect::finishAndDetect | ( | ) |
Completes the detection process and returns the BPM.
Referenced by processReader().
| void tracktion::engine::TempoDetect::processSection | ( | const float *const * | inputSamples, |
| int | numSamples | ||
| ) |
References tracktion::engine::AudioScratchBuffer::buffer.