From 52ddf91e5b2feba9686b8d84bd1998ccf70eba10 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 2 Dec 2020 23:43:38 -0700 Subject: [PATCH] Temporal: explain with timepos_t::_{ticks,beats} are for --- libs/temporal/temporal/timeline.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/temporal/temporal/timeline.h b/libs/temporal/temporal/timeline.h index 67225af64a..0eb52d0ca9 100644 --- a/libs/temporal/temporal/timeline.h +++ b/libs/temporal/temporal/timeline.h @@ -231,6 +231,13 @@ class LIBTEMPORAL_API timepos_t : public int62_t { */ superclock_t _superclocks() const; + + /* these two methods are to be called ONLY when we have already that + * the time domain of this timepos_t does not match the desired return + * type, and so we will need to go to the tempo map to convert + * between domains, which could be expensive. + */ + int64_t _ticks() const; Beats _beats() const;