The key signature object

Type: Dictionary

The key object defines a key signature applicable to this and all following measure content, until changed. This is a staff direction.

The measure location of a key object is ignored and is assumed to be zero.

The staff index of a key object is ignored, as the direction always applies to all the staves in a given part (if not the whole score).

It is invalid to place more than one key object within a single measure.

Key objects are required for every key change.


Name Type Required? Description
"class" style class object No An optional style class to use for this object.
"color" color object No An optional color to be used when rendering this key signature.
"fifths" fifths object Yes The number of fifths distance from a signature with no accidentals.


This object is used in the following examples:

Accidentals, Key signatures, Organ layout