add method (taken from GTK GUI) to goto_nth_marker() to BasicUI
[ardour.git] / libs / evoral / evoral / Note.hpp
index e84d6b9dc4e2a29f1102e7db86f3d9f76df73eef..87c8a9fe83b34e2a086051f71bb2fec0f101d68f 100644 (file)
@@ -33,18 +33,22 @@ namespace Evoral {
  * Currently a note is defined as (on event, length, off event).
  */
 template<typename Time>
+#ifdef COMPILER_MSVC
+class LIBEVORAL_LOCAL Note {
+#else
 class LIBEVORAL_TEMPLATE_API Note {
+#endif
 public:
-       Note(uint8_t chan=0, Time time=0, Time len=0, uint8_t note=0, uint8_t vel=0x40);
+       Note(uint8_t chan=0, Time time=Time(), Time len=Time(), uint8_t note=0, uint8_t vel=0x40);
        Note(const Note<Time>& copy);
        ~Note();
 
        const Note<Time>& operator=(const Note<Time>& copy);
 
        inline bool operator==(const Note<Time>& other) {
-               return musical_time_equal (time(), other.time()) &&
+               return time() == other.time() &&
                        note() == other.note() &&
-                       musical_time_equal (length(), other.length()) &&
+                       length() == other.length() &&
                        velocity() == other.velocity() &&
                        off_velocity() == other.off_velocity() &&
                        channel()  == other.channel();
@@ -105,8 +109,6 @@ private:
        MIDIEvent<Time> _off_event;
 };
 
-} // namespace Evoral
-
 template<typename Time>
 /*LIBEVORAL_API*/ std::ostream& operator<<(std::ostream& o, const Evoral::Note<Time>& n) {
        o << "Note #" << n.id() << ": pitch = " << (int) n.note()
@@ -116,6 +118,8 @@ template<typename Time>
        return o;
 }
 
+} // namespace Evoral
+
 #ifdef COMPILER_MSVC
 #include "../src/Note.impl"
 #endif