diff options
author | Robin Gareus <robin@gareus.org> | 2016-05-01 02:02:04 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-05-01 02:02:04 +0200 |
commit | 82d1d7ef0bd499868b49d49847a2a320cc088f85 (patch) | |
tree | 97225810fd673027ac66ca4c374e54793f51b0ce /libs/ardour/playlist.cc | |
parent | 791ac8f843ad0d9138ec9f9eb7644eafe296b170 (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/playlist.cc')
-rw-r--r-- | libs/ardour/playlist.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc index 239622a38c..5861415773 100644 --- a/libs/ardour/playlist.cc +++ b/libs/ardour/playlist.cc @@ -1949,7 +1949,7 @@ Playlist::find_next_transient (framepos_t from, int dir) bool reached = false; if (dir > 0) { - for (AnalysisFeatureList::iterator x = points.begin(); x != points.end(); ++x) { + for (AnalysisFeatureList::const_iterator x = points.begin(); x != points.end(); ++x) { if ((*x) >= from) { reached = true; } @@ -1959,7 +1959,7 @@ Playlist::find_next_transient (framepos_t from, int dir) } } } else { - for (AnalysisFeatureList::reverse_iterator x = points.rbegin(); x != points.rend(); ++x) { + for (AnalysisFeatureList::const_reverse_iterator x = points.rbegin(); x != points.rend(); ++x) { if ((*x) <= from) { reached = true; } |