tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
tracktion::engine::TempoDetect Class Reference

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< floatgetSensibleRange ()
 

Detailed Description

Uses the SoundTouch BPMDetect class to guess the tempo of some audio.

Definition at line 53 of file tracktion_TempoDetect.h.

Constructor & Destructor Documentation

◆ TempoDetect()

tracktion::engine::TempoDetect::TempoDetect ( int  numChannels_,
double  sampleRate 
)

Definition at line 56 of file tracktion_TempoDetect.h.

Member Function Documentation

◆ finishAndDetect()

float tracktion::engine::TempoDetect::finishAndDetect ( )

Completes the detection process and returns the BPM.

Definition at line 115 of file tracktion_TempoDetect.h.

◆ getBpm()

float tracktion::engine::TempoDetect::getBpm ( ) const

Returns the last BPM detected.

Definition at line 102 of file tracktion_TempoDetect.h.

◆ getSensibleRange()

static juce::Range< float > tracktion::engine::TempoDetect::getSensibleRange ( )
static

Definition at line 105 of file tracktion_TempoDetect.h.

◆ isBpmSensible()

bool tracktion::engine::TempoDetect::isBpmSensible ( ) const

Definition at line 104 of file tracktion_TempoDetect.h.

◆ processAndDetect()

float tracktion::engine::TempoDetect::processAndDetect ( const float **const  inputSamples,
int  numSamples 
)

Processes a block of audio returning the tempo for it.

Returns
the tempo in BPM for the block.

Definition at line 94 of file tracktion_TempoDetect.h.

◆ processReader()

float tracktion::engine::TempoDetect::processReader ( juce::AudioFormatReader reader)

Processes an entire AudioFormatReader returning the tempo for it.

Returns
the tempo in BPM for the block.

Definition at line 65 of file tracktion_TempoDetect.h.

◆ processSection() [1/2]

void tracktion::engine::TempoDetect::processSection ( const float *const *  inputSamples,
int  numSamples 
)

Definition at line 120 of file tracktion_TempoDetect.h.

◆ processSection() [2/2]

void tracktion::engine::TempoDetect::processSection ( juce::AudioBuffer< float > &  buffer,
int  numSamplesToProcess 
)

Processes a non-interleaved buffer section.


Definition at line 109 of file tracktion_TempoDetect.h.


The documentation for this class was generated from the following file: