From dbefba99047d19bdf10ced2f26633b12788ec15c Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 18 Jan 2022 19:45:15 -0700 Subject: [PATCH] temporal: have tempo map expose it's separate (intrusive) lists of tempo, meter and bbt points --- libs/temporal/temporal/tempo.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/temporal/temporal/tempo.h b/libs/temporal/temporal/tempo.h index 1fd1363575..c62391bae8 100644 --- a/libs/temporal/temporal/tempo.h +++ b/libs/temporal/temporal/tempo.h @@ -869,6 +869,10 @@ class /*LIBTEMPORAL_API*/ TempoMap : public PBD::StatefulDestructible typedef boost::intrusive::list> MusicTimes; typedef boost::intrusive::list> Points; + Tempos const & tempos() const { return _tempos; } + Meters const & meters() const { return _meters; } + MusicTimes const & bartimes() const { return _bartimes; } + LIBTEMPORAL_API Beats quarters_at_sample (samplepos_t sc) const { return quarters_at_superclock (samples_to_superclock (sc, TEMPORAL_SAMPLE_RATE)); } LIBTEMPORAL_API Beats quarters_at_superclock (superclock_t sc) const;