key-octave.md 1.1 KB


source: https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/key-octave/

downloaded: 2026-01-30T08:42:18.412Z

The element | MusicXML 4.0

MusicXML 4.0 >

MusicXML reference >
Elements >
key-octave

The element

Parent element:

    <key>

The element specifies in which octave an element of a key signature appears. The content specifies the octave value using the same values as the element.

Content

octave

Attributes

Name Type Required? Description
number positiveInteger Yes A positive integer that refers to the key signature element in left-to-right order.
cancel yes-no No If set to yes, then the number refers to the canceling key signature specified by the element in the parent element. It cannot be set to yes if there is no corresponding element within the parent element. It is no if absent.

Examples

This element is used in the following examples: