Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • Notehead

Index

Constructors

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

Properties

filled: boolean

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

sourceNote: Note

the Note this NoteHead belongs to.

Accessors

  • get Filled(): boolean
  • get SourceNote(): Note

Methods

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

    Parameters

    • shapeTypeXml: string

      The XML shape.

    • 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

Generated using TypeDoc