Skip to content

Commit

Permalink
Merge pull request musescore#22876 from miiizen/infer-cresc-fix
Browse files Browse the repository at this point in the history
Infer crescendo/diminuendo on XML import fix
  • Loading branch information
mike-spa authored May 17, 2024
2 parents 2e494cf + 2ce5fd8 commit 6f5f6ea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,7 @@ void MusicXMLParserPass2::initPartState(const String& partId)
m_measureStyleSlash = MusicXmlSlash::NONE;
m_extendedLyrics.init();
m_graceNoteLyrics.clear();
m_inferredHairpins.clear();

m_nstaves = m_pass1.getPart(partId)->nstaves();
m_measureRepeatNumMeasures.assign(m_nstaves, 0);
Expand Down Expand Up @@ -3244,7 +3245,7 @@ void MusicXMLParserDirection::direction(const String& partId,
delayedDirections.push_back(delayedDirection);
}

addInferredCrescLine(track, tick, isVocalStaff);
addInferredCrescLine(track, tick + m_offset, isVocalStaff);

// handle the elems
for (EngravingItem* elem : m_elems) {
Expand Down

0 comments on commit 6f5f6ea

Please sign in to comment.