denigma 4.0.0
Loading...
Searching...
No Matches
denigma::classify::NoteheadClassification Struct Reference

Result returned by notehead classification. More...

#include <noteheads.h>

Public Member Functions

 operator bool () const noexcept
 Returns true when the source was recognized as a notehead.
 
bool calcOverridesDefault (musx::dom::NoteType noteType) const noexcept
 Returns true when this classification changes the notehead a target would infer from the note duration.
 
bool calcFillOverridesDefault (musx::dom::NoteType noteType) const noexcept
 Returns true when the classified fill changes the fill inferred from the note duration.
 

Public Attributes

notehead::Shape shape {notehead::Shape::Unclassified}
 Classified notehead shape family.
 
notehead::Fill fill {notehead::Fill::Unspecified}
 Filled/unfilled state of the glyph. notehead::Fill::Unspecified when not known or not applicable.
 
std::optional< std::string > glyphName
 SMuFL glyph name associated with the recognized symbol, when available.
 
musx::dom::NoteInfoPtr::NoteheadInfo noteheadInfo
 The resolved font, character, size, and offset that produced this classification.
 

Detailed Description

Result returned by notehead classification.

Member Function Documentation

◆ calcOverridesDefault()

bool denigma::classify::NoteheadClassification::calcOverridesDefault ( musx::dom::NoteType  noteType) const
noexcept

Returns true when this classification changes the notehead a target would infer from the note duration.

An unrecognized glyph counts only when noteheadInfo reports a source other than the document default.


The documentation for this struct was generated from the following file: