do not allow smf_source's reads to stomp on cached read_end position in parent class...
[ardour.git] / libs / evoral / evoral / Sequence.hpp
index b059f4e231ff0aee1d535bb8ea301a4818ad39d9..df8c48a1b6047d5567224de7e5b9ddf5e1ea262e 100644 (file)
@@ -92,6 +92,14 @@ public:
                return a->time() < b->time();
        }
 
+       struct LaterNoteComparator {
+               typedef const Note<Time>* value_type;
+               inline bool operator()(const boost::shared_ptr< const Note<Time> > a,
+                                      const boost::shared_ptr< const Note<Time> > b) const { 
+                       return a->time() > b->time();
+               }
+       };
+
        struct LaterNoteEndComparator {
                typedef const Note<Time>* value_type;
                inline bool operator()(const boost::shared_ptr< const Note<Time> > a,