BTrack - A Real-Time Beat Tracker
 All Classes Files Functions Enumerations
Public Member Functions | List of all members
OnsetDetectionFunction Class Reference

Public Member Functions

 OnsetDetectionFunction (int hopSize_, int frameSize_, int onsetDetectionFunctionType_, int windowType)
 
 ~OnsetDetectionFunction ()
 
void initialise (int hopSize_, int frameSize_, int onsetDetectionFunctionType_, int windowType)
 
double calculateOnsetDetectionFunctionSample (double *buffer)
 
void setOnsetDetectionFunctionType (int onsetDetectionFunctionType_)
 

Constructor & Destructor Documentation

OnsetDetectionFunction::OnsetDetectionFunction ( int  hopSize_,
int  frameSize_,
int  onsetDetectionFunctionType_,
int  windowType 
)

Constructor

Parameters
hopSize_the hop size in audio samples
frameSize_the frame size in audio samples
onsetDetectionFunctionType_the type of onset detection function to use - (see OnsetDetectionFunctionType)
windowTypethe type of window to use (see WindowType)
OnsetDetectionFunction::~OnsetDetectionFunction ( )

Destructor

Member Function Documentation

double OnsetDetectionFunction::calculateOnsetDetectionFunctionSample ( double *  buffer)

process input frame and calculate detection function sample

void OnsetDetectionFunction::initialise ( int  hopSize_,
int  frameSize_,
int  onsetDetectionFunctionType_,
int  windowType 
)

Initialisation Function

void OnsetDetectionFunction::setOnsetDetectionFunctionType ( int  onsetDetectionFunctionType_)

set the detection function type


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