Skip to content

Commit

Permalink
Implement invisible clefs in Humdrum-to-MEI converter.
Browse files Browse the repository at this point in the history
  • Loading branch information
craigsapp committed Jan 3, 2023
1 parent eeb05ca commit bd355b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/iohumdrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6708,6 +6708,10 @@ void HumdrumInput::setClef(StaffDef *staff, const std::string &clef, hum::HTp cl
}
}

if (clef.find("yy") != std::string::npos) {
vrvclef->SetVisible(BOOLEAN_false);
}

std::string tok;
if (cleftok) {
tok = *cleftok;
Expand Down Expand Up @@ -10667,6 +10671,9 @@ bool HumdrumInput::fillContentsOfLayer(int track, int startline, int endline, in
}

if (clef) {
if (layerdata[i]->find("yy") != std::string::npos) {
clef->SetVisible(BOOLEAN_false);
}
setLocationId(clef, layerdata[i]);
int diff = layerindex - subtrack;
if (diff > 0) {
Expand Down

0 comments on commit bd355b4

Please sign in to comment.