Skip to content

Commit

Permalink
Enhancement of last commit: uses double up/down arrows for chromatic …
Browse files Browse the repository at this point in the history
…adjstuments of degrees in Humdrum-to-MEI converter.
  • Loading branch information
craigsapp committed Dec 29, 2022
1 parent e7ee42f commit 3bfd2b2
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/iohumdrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8410,14 +8410,30 @@ std::u32string HumdrumInput::cleanDegreeString(hum::HTp token, int n)
// do nothing
}
else if (sharps > 0) {
for (int i = 0; i < sharps; i++) {
if (sharps == 1) {
output += U"\u2191"; // up arrow
}
else if (sharps == 2) {
output += U"\u21D1"; // double up arrow
}
else {
for (int i = 0; i < sharps; i++) {
output += U"\u2191"; // up arrow
}
}
}
else if (flats > 0) {
for (int i = 0; i < flats; i++) {
if (flats == 1) {
output += U"\u2193"; // down arrow
}
else if (flats == 2) {
output += U"\u21D3"; // double down arrow
}
else {
for (int i = 0; i < flats; i++) {
output += U"\u2193"; // down arrow
}
}
}
}

Expand Down

0 comments on commit 3bfd2b2

Please sign in to comment.