From 4030f531e86e351ec6b0da79741b85aca7ef034f Mon Sep 17 00:00:00 2001 From: Craig Stuart Sapp Date: Mon, 18 Sep 2023 21:19:34 -0700 Subject: [PATCH] Implementation for issue https://github.com/humdrum-tools/verovio-humdrum-viewer/issues/835 --- src/iohumdrum.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/iohumdrum.cpp b/src/iohumdrum.cpp index 5cc9a46c6c5..22aba8af8ff 100644 --- a/src/iohumdrum.cpp +++ b/src/iohumdrum.cpp @@ -11859,6 +11859,11 @@ bool HumdrumInput::fillContentsOfLayer(int track, int startline, int endline, in insertMidMeasureKeySignature(staffindex, elements, pointers, token); } + bool isTimeSignature = layerdata[i]->isTimeSignature(); + if (notAtStart && isTimeSignature) { + insertMeterSigElement(elements, pointers, layerdata, i); + } + bool forceClefChange = false; if (token->isClef() || (*token == "*")) { if (!(token->isMensLike() && notAtStart)) { @@ -11974,9 +11979,7 @@ bool HumdrumInput::fillContentsOfLayer(int track, int startline, int endline, in } } if (token->isTimeSignature()) { - // Now done at the measure level. This location might - // be good for time signatures which change in the - // middle of measures. + // Now done further above. // insertMeterSigElement(elements, pointers, layerdata, i); processDirections(token, staffindex); }