summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/transient_detector.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/ardour/transient_detector.h')
-rw-r--r--libs/ardour/ardour/transient_detector.h34
1 files changed, 16 insertions, 18 deletions
diff --git a/libs/ardour/ardour/transient_detector.h b/libs/ardour/ardour/transient_detector.h
index 0e071e03a8..322e4cbc75 100644
--- a/libs/ardour/ardour/transient_detector.h
+++ b/libs/ardour/ardour/transient_detector.h
@@ -30,31 +30,29 @@ class Session;
class TransientDetector : public AudioAnalyser
{
+public:
+ TransientDetector (float sample_rate);
+ ~TransientDetector();
- public:
- TransientDetector (float sample_rate);
- ~TransientDetector();
+ static std::string operational_identifier();
- static std::string operational_identifier();
+ void set_threshold (float);
+ void set_sensitivity (float);
- void set_threshold (float);
- void set_sensitivity (float);
+ float get_threshold () const;
+ float get_sensitivity () const;
- float get_threshold () const;
- float get_sensitivity () const;
+ int run (const std::string& path, Readable*, uint32_t channel, AnalysisFeatureList& results);
+ void update_positions (Readable* src, uint32_t channel, AnalysisFeatureList& results);
- int run (const std::string& path, Readable*, uint32_t channel, AnalysisFeatureList& results);
- void update_positions (Readable* src, uint32_t channel, AnalysisFeatureList& results);
-
- static void cleanup_transients (AnalysisFeatureList&, float sr, float gap_msecs);
-
+ static void cleanup_transients (AnalysisFeatureList&, float sr, float gap_msecs);
- protected:
- AnalysisFeatureList* current_results;
- int use_features (Vamp::Plugin::FeatureSet&, std::ostream*);
+protected:
+ AnalysisFeatureList* current_results;
+ int use_features (Vamp::Plugin::FeatureSet&, std::ostream*);
- static std::string _op_id;
- float threshold;
+ static std::string _op_id;
+ float threshold;
};
} /* namespace */