Key_engraver - LilyPond program-reference
Description: LilyPond program-reference

Next: Key_performer, Previous: Instrument_name_engraver, Up: Engravers

#### Key_engraver

Music types accepted:

key-change-event

Properties (read)

`createKeyOnClefChange` (boolean)
  Print a key signature whenever the clef is changed.
`explicitKeySignatureVisibility` (vector)
  ``break-visibility`' function for explicit key changes. ``\override`' of the `break-visibility` property will set the visibility for normal (i.e. at the start of the line) key signatures.
`keyAlterationOrder` (list)
  Alist that defines in what order alterations should be printed. The format is (step . alter), where step is from 0 .. 6 and alter from -2 (sharp) and 2 (flat).
`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).
`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).
`lastKeySignature` (list)
  Last key signature before a key signature change.
`printKeyCancellation` (boolean)
  Print restoration alterations before a key signature change.

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).
`lastKeySignature` (list)
  Last key signature before a key signature change.
`tonic` (pitch)
  The tonic of the current scale

This engraver creates the following layout objects: KeySignature.

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

This page is for LilyPond-2.8.8 (stable-branch).

Other languages: English.
Using automatic language selection.