#### Key_engraver

Music types accepted:

key-change-event

Properties (read)

`keySignature` (list)
  The current key signature. This is an alist containing (name . alter) or ((octave . name) . alter). where name is from 0.. 6 and alter from -4 (double flat) to 4 (double sharp).
`keyAccidentalOrder` (list)
  Alist that defines in what order alterations should be printed. The format is (name . alter), where name is from 0 .. 6 and alter from -1, 1.
`createKeyOnClefChange` (boolean)
  Print a key signature whenever the clef is changed.
`explicitKeySignatureVisibility` (procedure)
  break-visibility function for explicit key changes. \override of #'break-visibility will set the visibility for normal (i.e. at the start of the line) key signatures.
`lastKeySignature` (list)
  Last key signature before a key signature change.
`printKeyCancellation` (boolean)
  Print restoration alterations before a key signature change.
`keySignature` (list)
  The current key signature. This is an alist containing (name . alter) or ((octave . name) . alter). where name is from 0.. 6 and alter from -4 (double flat) to 4 (double sharp).

Properties (write)

`keySignature` (list)
  The current key signature. This is an alist containing (name . alter) or ((octave . name) . alter). where name is from 0.. 6 and alter from -4 (double flat) to 4 (double sharp).
`tonic` (pitch)
  The tonic of the current scale
`lastKeySignature` (list)
  Last key signature before a key signature change.

This engraver creates the following layout objects: KeySignature.

`Key_engraver` is part of contexts: GregorianTranscriptionStaff, Staff and VaticanaStaff

Read comments on this page, or add one. This page is for LilyPond-2.2.5 (stable-branch).