diff options
author | Robin Gareus <robin@gareus.org> | 2016-05-25 17:52:50 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-05-25 17:52:50 +0200 |
commit | 6c502b8315bec6540e7ab94e2821e328b1f5af30 (patch) | |
tree | f5aa9923a11a5d87399239449ba3b113da497b1a /libs/ardour/analyser.cc | |
parent | 5550eebe2fde5c46a5e67613899699713a92e3c8 (diff) |
allow to configure transient detection sensitivity
NB. this does not yet re-analyze regions when the config changes
and is hence also not [yet] exposed in the GUI.
Diffstat (limited to 'libs/ardour/analyser.cc')
-rw-r--r-- | libs/ardour/analyser.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/analyser.cc b/libs/ardour/analyser.cc index 58a8f30245..a603e29b23 100644 --- a/libs/ardour/analyser.cc +++ b/libs/ardour/analyser.cc @@ -19,6 +19,7 @@ #include "ardour/analyser.h" #include "ardour/audiofilesource.h" +#include "ardour/rc_configuration.h" #include "ardour/session_event.h" #include "ardour/transient_detector.h" @@ -110,6 +111,7 @@ Analyser::analyse_audio_file_source (boost::shared_ptr<AudioFileSource> src) try { TransientDetector td (src->sample_rate()); + td.set_sensitivity (3, Config->get_transient_sensitivity()); // "General purpose" if (td.run (src->get_transients_path(), src.get(), 0, results) == 0) { src->set_been_analysed (true); } else { |