MIDI region forking, plus Playlist::regions_to_read() fix forward ported from 2.X...
[ardour.git] / libs / evoral / evoral / types.hpp
index 06f29b341e0c7f55ac99a11b5c03896d1fcccd61..a2cc814c69c4e09c29f8239c9ff395f42ad1cb31 100644 (file)
@@ -22,6 +22,7 @@
 #include <stdint.h>
 #include <list>
 #include <cmath>
+#include <cfloat>
 
 namespace Evoral {
 
@@ -30,9 +31,11 @@ typedef uint32_t FrameTime;
 
 /** Musical time: beats relative to some defined origin */
 typedef double MusicalTime;
+const MusicalTime MaxMusicalTime = DBL_MAX;
+const MusicalTime MinMusicalTime = DBL_MIN;
 
 static inline bool musical_time_equal (MusicalTime a, MusicalTime b) {
-        /* acceptable tolerance is 1 tick. Nice if there was no magic number here */
+       /* acceptable tolerance is 1 tick. Nice if there was no magic number here */
        return fabs (a - b) <= (1.0/1920.0);
 }