From 1b904285bea15677264891a5d52f7e8e90ebdcb7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 3 Jun 2022 10:50:17 -0600 Subject: [PATCH] temporal: improve utility of TempoMap::dump() output --- libs/temporal/tempo.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/temporal/tempo.cc b/libs/temporal/tempo.cc index 5d7abae388..48c1b2c2b7 100644 --- a/libs/temporal/tempo.cc +++ b/libs/temporal/tempo.cc @@ -1668,12 +1668,14 @@ TempoMap::dump (std::ostream& ostr) const ostr << &*p << ' ' << *p; if (dynamic_cast (&(*p))) { ostr << " BarTime"; - } else if (dynamic_cast (&(*p))) { + } + + if (dynamic_cast (&(*p))) { ostr << " Tempo"; - } else if (dynamic_cast (&(*p))) { + } + + if (dynamic_cast (&(*p))) { ostr << " Meter"; - } else { - ostr << " ???"; } ostr << endl; }