Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Notehead

A note head with shape and fill information belonging to a Note.

Hierarchy

  • Notehead

Index

Constructors

constructor

  • new Notehead(sourceNote: Note, shapeTypeXml: string, filledXml?: boolean): Notehead

Properties

Private filled

filled: boolean

Private shape

shape of the note head (normal, square, triangle, etc.)

Private sourceNote

sourceNote: Note

the Note this NoteHead belongs to.

Accessors

Filled

  • get Filled(): boolean

Shape

SourceNote

  • get SourceNote(): Note

Methods

setShapeFromXml

  • setShapeFromXml(shapeTypeXml: string, filledXmlAttribute?: boolean): void
  • Sets the note head's shape from XML parameters.

    Parameters

    • shapeTypeXml: string

      The XML shape.

    • Default value filledXmlAttribute: boolean = undefined

      the filled parameter as given in XML. Can be undefined if not given in XML or if it should be calculated from note duration. If undefined, this.sourceNote should not be undefined.

    Returns void

Static ShapeTypeXmlToShape

Generated using TypeDoc