The <key> element.

The key element represents a key signature. Both traditional and non-traditional key signatures are supported. The optional number attribute refers to staff numbers. If absent, the key signature applies to all staves in the part.

Hierarchy

  • Key

Implements

Constructors

Properties

attributes: KeyAttributes
contents: KeyContents
schema: XMLElementSchema<"key"> = Key.schema
schema: XMLElementSchema<"key"> = schema.Key

Methods

  • Gets

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

  • Sets

    Parameters

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

    Returns Key

Generated using TypeDoc