From 2e08ff01f58f9812bc43f742294cecbb29f7b0f7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 27 Aug 2023 22:47:28 -0600 Subject: [PATCH] temporal: add TempoMapCutBuffer::empty() --- 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 0b2df9c1dd..a18bd4dcad 100644 --- a/libs/temporal/temporal/tempo.h +++ b/libs/temporal/temporal/tempo.h @@ -1234,6 +1234,10 @@ class LIBTEMPORAL_API TempoMapCutBuffer MusicTimes const & bartimes() const { return _bartimes; } Points const & points() const { return _points; } + bool empty() const { + return _tempos.empty() && _meters.empty() && _bartimes.empty() && _points.empty(); + } + private: Tempo* _start_tempo; Tempo* _end_tempo;