Skip to content

Commit

Permalink
Fix mensur and metersig not taken into account in MIDI output. Relate…
Browse files Browse the repository at this point in the history
…s to #3520
  • Loading branch information
lpugin committed Sep 29, 2023
1 parent 994d1f2 commit 69b92ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/midifunctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Mensur *>(layerElement);
}
else if (layerElement->Is(METERSIG)) {
this->m_currentMeterSig = vrv_cast<MeterSig *>(layerElement);
}

return FUNCTOR_CONTINUE;
}
Expand Down

0 comments on commit 69b92ef

Please sign in to comment.