Skip to main content

alphaTab.model.NoteStyle

Defines the custom styles for notes.

 class NoteStyle extends ElementStyle<NoteSubElement>

Properties​

colors​

Changes the color of the specified sub-element within the element this style container belongs to. Null indicates that a certain element should use the default color from RenderingResources even if some "higher level" element changes colors. (Inherited from ElementStyle )

colors: Map<TSubElements, Color | null>;

noteHead​

The symbol that should be used as note head.

noteHead?: MusicFontSymbol;

noteHeadCenterOnStem​

Whether the note head symbol should be centered on the stem (e.g. for arrow notes)

noteHeadCenterOnStem?: boolean;