The <symbol> element.

The symbol element specifies a musical symbol using a canonical SMuFL glyph name. It is used when an occasional musical symbol is interspersed into text. It should not be used in place of semantic markup, such as metronome marks that mix text and symbols. Left justification is used if not specified. Enclosure is none if not specified.

Hierarchy

  • Symbol

Implements

Constructors

Properties

attributes: SymbolAttributes
contents: SymbolContents
schema: XMLElementSchema<"symbol"> = Symbol.schema
schema: XMLElementSchema<"symbol"> = schema.Symbol

Methods

  • Gets

    Returns null | "none" | "bracket" | "rectangle" | "square" | "oval" | "circle" | "inverted-bracket" | "triangle" | "diamond" | "pentagon" | "hexagon" | "heptagon" | "octagon" | "nonagon" | "decagon"

  • Gets

    Returns null | number | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large"

  • Gets

    Returns null | "top" | "middle" | "bottom" | "baseline"

  • Sets

    Parameters

    • enclosure: null | "none" | "bracket" | "rectangle" | "square" | "oval" | "circle" | "inverted-bracket" | "triangle" | "diamond" | "pentagon" | "hexagon" | "heptagon" | "octagon" | "nonagon" | "decagon"

    Returns Symbol

  • Sets

    Parameters

    • fontSize: null | number | "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large"

    Returns Symbol

Generated using TypeDoc