From b8a7de43b6bd9a3ec97906044c2b6bf5694b898a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 24 Jan 2021 15:24:06 -0700 Subject: [PATCH] libtemporal: change Tempo API to ensure that the correct construtor is called This could be probably be improved with an even more distinct ramped/non-ramped API --- libs/temporal/temporal/tempo.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/temporal/temporal/tempo.h b/libs/temporal/temporal/tempo.h index 67c96fa0eb..0cccca98a2 100644 --- a/libs/temporal/temporal/tempo.h +++ b/libs/temporal/temporal/tempo.h @@ -167,7 +167,7 @@ class LIBTEMPORAL_API Tempo : public Rampable { * @param npm Note Types per minute * @param note_type Note Type (default `4': quarter note) */ - Tempo (double npm, int note_type = 4) + Tempo (double npm, int note_type) : _npm (npm) , _enpm (npm) , _superclocks_per_note_type (double_npm_to_scpn (npm)) @@ -180,7 +180,7 @@ class LIBTEMPORAL_API Tempo : public Rampable { , _clamped (false) , _type (Tempo::Constant) {} - Tempo (double npm, double enpm, int note_type = 4) + Tempo (double npm, double enpm, int note_type) : _npm (npm) , _enpm (npm) , _superclocks_per_note_type (double_npm_to_scpn (npm)) @@ -270,6 +270,7 @@ class LIBTEMPORAL_API Tempo : public Rampable { } uint64_t super_note_type_per_second() const { return _super_note_type_per_second; } + uint64_t end_super_note_type_per_second() const { return _end_super_note_type_per_second; } protected: double _npm;