Skip to content

Commit

Permalink
Add support for [email protected]
Browse files Browse the repository at this point in the history
* Limited to half notes and quarter (and shorter) notes and to values `solid` and `void` respectively
  • Loading branch information
lpugin committed Oct 27, 2023
1 parent 9de5929 commit ce3bb1c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/note.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,13 @@ char32_t Note::GetNoteheadGlyph(const int duration) const

if (DUR_BR == duration) return SMUFL_E0A1_noteheadDoubleWholeSquare;
if (DUR_1 == duration) return SMUFL_E0A2_noteheadWhole;
if (DUR_2 == duration) return SMUFL_E0A3_noteheadHalf;
return SMUFL_E0A4_noteheadBlack;
// We support solid on half notes or void on quarter and shorter notes
if (DUR_2 == duration) {
return (this->GetHeadFill() == FILL_solid) ? SMUFL_E0A4_noteheadBlack : SMUFL_E0A3_noteheadHalf;
}
else {
return (this->GetHeadFill() == FILL_void) ? SMUFL_E0A3_noteheadHalf : SMUFL_E0A4_noteheadBlack;
}
}

bool Note::IsVisible() const
Expand Down

0 comments on commit ce3bb1c

Please sign in to comment.