From b5c945e211054bbc66f8afecb3c7a4655ac09291 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 1 Oct 2020 10:31:04 -0600 Subject: [PATCH] Temporal: another useful static method --- libs/temporal/temporal/timeline.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/temporal/temporal/timeline.h b/libs/temporal/temporal/timeline.h index 5cc2764e24..e94eb3df98 100644 --- a/libs/temporal/temporal/timeline.h +++ b/libs/temporal/temporal/timeline.h @@ -217,6 +217,7 @@ class LIBTEMPORAL_API timepos_t : public int62_t { std::string to_string () const; static timepos_t max (TimeDomain td) { return timepos_t (td != AudioTime, int62_t::max); } + static timepos_t smallest_step (TimeDomain td) { return timepos_t (td != AudioTime, 1); } private: /* special private constructor for use when constructing timepos_t as a