summaryrefslogtreecommitdiff
path: root/libs/ardour/transient_detector.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-05-01 02:02:04 +0200
committerRobin Gareus <robin@gareus.org>2016-05-01 02:02:04 +0200
commit82d1d7ef0bd499868b49d49847a2a320cc088f85 (patch)
tree97225810fd673027ac66ca4c374e54793f51b0ce /libs/ardour/transient_detector.cc
parent791ac8f843ad0d9138ec9f9eb7644eafe296b170 (diff)
various transient-detection fixes (split region, trim, move, undo,..)
* all API calls use session-time (allow region-lists) * per-region transients are separated in - Onset (Rhythm Rodent, Aubio) - User-added - internal/source (QM), used as fallback for next/prev (read-only)
Diffstat (limited to 'libs/ardour/transient_detector.cc')
-rw-r--r--libs/ardour/transient_detector.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/transient_detector.cc b/libs/ardour/transient_detector.cc
index 41bb51f710..15b2a4ce08 100644
--- a/libs/ardour/transient_detector.cc
+++ b/libs/ardour/transient_detector.cc
@@ -119,7 +119,7 @@ TransientDetector::cleanup_transients (AnalysisFeatureList& t, float sr, float g
// move f until we find a new value that is far enough away
- while ((f != t.end()) && (((*f) - (*i)) < gap_frames)) {
+ while ((f != t.end()) && gap_frames > 0 && (((*f) - (*i)) < gap_frames)) {
++f;
}