Ardour  9.0-pre0-582-g084a23a80d
ARDOUR::OnsetDetector Class Reference

#include <onset_detector.h>

Inheritance diagram for ARDOUR::OnsetDetector:
[legend]

Public Member Functions

 OnsetDetector (float sample_rate)
 
 ~OnsetDetector ()
 
void set_silence_threshold (float)
 
void set_peak_threshold (float)
 
void set_minioi (float)
 
void set_function (int)
 
int run (const std::string &path, AudioReadable *, uint32_t channel, AnalysisFeatureList &results)
 
- Public Member Functions inherited from ARDOUR::AudioAnalyser
 AudioAnalyser (float sample_rate, AnalysisPluginKey key)
 
 AudioAnalyser (const AudioAnalyser &)=delete
 
AudioAnalyseroperator= (const AudioAnalyser &)=delete
 
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, AudioReadable *, uint32_t channel)
 

Protected Attributes

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

Static Protected Attributes

static std::string _op_id
 

Additional Inherited Members

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

Detailed Description

Definition at line 29 of file onset_detector.h.

Constructor & Destructor Documentation

◆ OnsetDetector()

ARDOUR::OnsetDetector::OnsetDetector ( float  sample_rate)

◆ ~OnsetDetector()

ARDOUR::OnsetDetector::~OnsetDetector ( )

Member Function Documentation

◆ cleanup_onsets()

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

◆ operational_identifier()

static std::string ARDOUR::OnsetDetector::operational_identifier ( )
static

◆ run()

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

◆ set_function()

void ARDOUR::OnsetDetector::set_function ( int  )

◆ set_minioi()

void ARDOUR::OnsetDetector::set_minioi ( float  )

◆ set_peak_threshold()

void ARDOUR::OnsetDetector::set_peak_threshold ( float  )

◆ set_silence_threshold()

void ARDOUR::OnsetDetector::set_silence_threshold ( float  )

◆ use_features()

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

Implements ARDOUR::AudioAnalyser.

Member Data Documentation

◆ _op_id

std::string ARDOUR::OnsetDetector::_op_id
staticprotected

Definition at line 50 of file onset_detector.h.

◆ current_results

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 file: