ardour
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ARDOUR::OnsetDetector Class Reference

#include <onset_detector.h>

Inheritance diagram for ARDOUR::OnsetDetector:
ARDOUR::AudioAnalyser

Public Member Functions

 OnsetDetector (float sample_rate)
 
 ~OnsetDetector ()
 
void set_silence_threshold (float)
 
void set_peak_threshold (float)
 
void set_function (int)
 
int run (const std::string &path, Readable *, uint32_t channel, AnalysisFeatureList &results)
 
- Public Member Functions inherited from ARDOUR::AudioAnalyser
 AudioAnalyser (float sample_rate, AnalysisPluginKey key)
 
virtual ~AudioAnalyser ()
 
void reset ()
 

Static Public Member Functions

static std::string operational_identifier ()
 
static void cleanup_onsets (AnalysisFeatureList &, float sr, float gap_msecs)
 

Protected Member Functions

int use_features (Vamp::Plugin::FeatureSet &, std::ostream *)
 
- Protected Member Functions inherited from ARDOUR::AudioAnalyser
int initialize_plugin (AnalysisPluginKey name, float sample_rate)
 
int analyse (const std::string &path, Readable *, uint32_t channel)
 

Protected Attributes

AnalysisFeatureListcurrent_results
 
- Protected Attributes inherited from ARDOUR::AudioAnalyser
float sample_rate
 
AnalysisPluginplugin
 
AnalysisPluginKey plugin_key
 
framecnt_t bufsize
 
framecnt_t stepsize
 

Static Protected Attributes

static std::string _op_id = X_("libardourvampplugins:aubioonset:2")
 

Additional Inherited Members

- Public Types inherited from ARDOUR::AudioAnalyser
typedef Vamp::Plugin AnalysisPlugin
 
typedef std::string AnalysisPluginKey
 

Detailed Description

Definition at line 30 of file onset_detector.h.

Constructor & Destructor Documentation

OnsetDetector::OnsetDetector ( float  sample_rate)

Definition at line 33 of file onset_detector.cc.

OnsetDetector::~OnsetDetector ( )

Definition at line 46 of file onset_detector.cc.

Member Function Documentation

void OnsetDetector::cleanup_onsets ( AnalysisFeatureList t,
float  sr,
float  gap_msecs 
)
static

Definition at line 111 of file onset_detector.cc.

string OnsetDetector::operational_identifier ( )
static

Definition at line 51 of file onset_detector.cc.

int OnsetDetector::run ( const std::string &  path,
Readable src,
uint32_t  channel,
AnalysisFeatureList results 
)

Definition at line 57 of file onset_detector.cc.

void OnsetDetector::set_function ( int  val)

Definition at line 103 of file onset_detector.cc.

void OnsetDetector::set_peak_threshold ( float  val)

Definition at line 95 of file onset_detector.cc.

void OnsetDetector::set_silence_threshold ( float  val)

Definition at line 87 of file onset_detector.cc.

int OnsetDetector::use_features ( Vamp::Plugin::FeatureSet &  ,
std::ostream *   
)
protectedvirtual

Implements ARDOUR::AudioAnalyser.

Definition at line 67 of file onset_detector.cc.

Member Data Documentation

string OnsetDetector::_op_id = X_("libardourvampplugins:aubioonset:2")
staticprotected

Definition at line 50 of file onset_detector.h.

AnalysisFeatureList* ARDOUR::OnsetDetector::current_results
protected

Definition at line 47 of file onset_detector.h.


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