From 69b92ef10a786400f80816dfef21a566313cbc35 Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Fri, 29 Sep 2023 15:51:02 +0200 Subject: [PATCH] Fix mensur and metersig not taken into account in MIDI output. Relates to #3520 --- src/midifunctor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/midifunctor.cpp b/src/midifunctor.cpp index 788f70e7279..b0d5ad02b04 100644 --- a/src/midifunctor.cpp +++ b/src/midifunctor.cpp @@ -158,6 +158,12 @@ FunctorCode InitOnsetOffsetFunctor::VisitLayerElement(LayerElement *layerElement m_currentScoreTime += incrementScoreTime; m_currentRealTimeSeconds += incrementScoreTime * 60.0 / m_currentTempo; } + else if (layerElement->Is(MENSUR)) { + this->m_currentMensur = vrv_cast(layerElement); + } + else if (layerElement->Is(METERSIG)) { + this->m_currentMeterSig = vrv_cast(layerElement); + } return FUNCTOR_CONTINUE; }