comparison data/model/NoteModel.h @ 1657:31b46a5647db single-point

Forward the matching-event functions
author Chris Cannam
date Wed, 20 Mar 2019 15:45:52 +0000
parents e4084bc60fe8
children 8bf3a52a1604
comparison
equal deleted inserted replaced
1656:e4084bc60fe8 1657:31b46a5647db
171 return m_events.getEventsStartingWithin(f, duration); 171 return m_events.getEventsStartingWithin(f, duration);
172 } 172 }
173 EventVector getEventsStartingAt(sv_frame_t f) const { 173 EventVector getEventsStartingAt(sv_frame_t f) const {
174 return m_events.getEventsStartingAt(f); 174 return m_events.getEventsStartingAt(f);
175 } 175 }
176 bool getNearestEventMatching(sv_frame_t startSearchAt,
177 std::function<bool(Event)> predicate,
178 EventSeries::Direction direction,
179 Event &found) const {
180 return m_events.getNearestEventMatching
181 (startSearchAt, predicate, direction, found);
182 }
176 183
177 /** 184 /**
178 * Editing methods. 185 * Editing methods.
179 */ 186 */
180 void add(Event e) override { 187 void add(Event e) override {