MUSX Document Model
Loading...
Searching...
No Matches
musx::dom::NoteInfoPtr::NoteheadInfo Struct Reference

The resolved font, character, size, and offset for a note's notehead. More...

#include <Entries.h>

Public Types

enum class  Source { Default , NoteAlteration , PercussionMap , ShapeNotes }
 The setting that supplied the notehead. (See calcNoteheadInfo for the order of precedence.) More...
 

Public Attributes

Source source {}
 The setting that supplied character.
 
MusxInstance< FontInfofont
 The font that character is drawn from.
 
char32_t character {}
 The notehead character, interpreted in font.
 
int percent {100}
 Size percentage for the notehead. (100 means 100%.)
 
Evpu horzOffset {}
 Horizontal notehead offset from the default position.
 
Evpu vertOffset {}
 

Detailed Description

The resolved font, character, size, and offset for a note's notehead.

Member Enumeration Documentation

◆ Source

The setting that supplied the notehead. (See calcNoteheadInfo for the order of precedence.)

Enumerator
Default 

The document's default notehead for the note's duration category.

NoteAlteration 

A per-note details::NoteAlterations::altNhead override.

PercussionMap 

The shape of a mapped percussion note.

ShapeNotes 

The staff's shape-note convention.

Member Data Documentation

◆ vertOffset

Evpu musx::dom::NoteInfoPtr::NoteheadInfo::vertOffset {}

Vertical notehead offset from the default position. Zero unless the source of the notehead specifically allows vertical positioning.