From c8175b7c497d3e48003c2cf7f63128e218a27e63 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 31 Jan 2021 17:31:22 -0700 Subject: [PATCH] libtemporal: add new constructors for MusicTimePoint and MeterPoint --- libs/temporal/temporal/tempo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/temporal/temporal/tempo.h b/libs/temporal/temporal/tempo.h index 0cccca98a2..542ac15078 100644 --- a/libs/temporal/temporal/tempo.h +++ b/libs/temporal/temporal/tempo.h @@ -345,6 +345,7 @@ class LIBTEMPORAL_API MeterPoint : public Meter, public Point public: MeterPoint (TempoMap const & map, Meter const & m, superclock_t sc, Beats const & b, BBT_Time const & bbt) : Meter (m), Point (map, sc, b, bbt) {} MeterPoint (TempoMap const & map, XMLNode const &); + MeterPoint (Meter const & m, Point const & p) : Meter (m), Point (p) {} Beats quarters_at (BBT_Time const & bbt) const; BBT_Time bbt_at (Beats const & beats) const; @@ -514,7 +515,7 @@ class LIBTEMPORAL_API TempoMetric { class LIBTEMPORAL_API MusicTimePoint : public Point { public: - MusicTimePoint (TempoMap const & map) : Point (map, 0, Beats(), BBT_Time()) {} + MusicTimePoint (TempoMap const & map, superclock_t sc, Beats const & b, BBT_Time const & bbt) : Point (map, sc, b, bbt) {} MusicTimePoint (BBT_Time const & bbt_time, Point const & p) : Point (p) { _bbt = bbt_time; } MusicTimePoint (TempoMap const & map, XMLNode const &);