diff options
author | David Robillard <d@drobilla.net> | 2009-10-21 16:39:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-10-21 16:39:39 +0000 |
commit | 86a09c58e3e0e66b1e3525680327545f2b5372c6 (patch) | |
tree | be62fa176b2ad54dd8e33fc2e7cc3b9bb6277b04 /libs/evoral/evoral/Sequence.hpp | |
parent | 2c59ddede5a4b6c1b9227e2a0288561b38f0763f (diff) |
Fix O(n) search on MIDI rec region update (now O(log(n)) per update, but could be O(1) with caching...)
git-svn-id: svn://localhost/ardour2/branches/3.0@5843 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral/evoral/Sequence.hpp')
-rw-r--r-- | libs/evoral/evoral/Sequence.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/evoral/evoral/Sequence.hpp b/libs/evoral/evoral/Sequence.hpp index 22d81b6948..b5737638e1 100644 --- a/libs/evoral/evoral/Sequence.hpp +++ b/libs/evoral/evoral/Sequence.hpp @@ -179,6 +179,8 @@ public: const_iterator begin(Time t=0) const { return const_iterator(*this, t); } const const_iterator& end() const { return _end_iter; } + typename Notes::const_iterator note_lower_bound (Time t) const; + bool control_to_midi_event(boost::shared_ptr< Event<Time> >& ev, const ControlIterator& iter) const; |