[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

Non-traditional key signatures

The commonly used \key command sets the keyAlterations property in the Staff context. To create non-standard key signatures, set this property directly.

The format of this command is a list:

\set Staff.keyAlterations = #`(((octave . step) . alter) ((octave . step) . alter) ...)

where, for each element in the list octave specifies the octave (0 being the octave from middle c to the b above), step specifies the note within the octave (0 means c and 6 means b), and alter is ,SHARP ,FLAT ,DOUBLE-SHARP etc.

Alternatively, using the more concise format for each item in the list, (step . alter) specifies the same alteration holds in all octaves. For microtonal scales where a “sharp” is not 100 cents, alter refers to the proportion of a 200-cent whole tone.

 
\include "arabic.ly"
\relative do' {
  \set Staff.keyAlterations = #`((0 . ,SEMI-FLAT)
                                 (1 . ,SEMI-FLAT)
                                 (2 . ,FLAT)
                                 (5 . ,FLAT)
                                 (6 . ,SEMI-FLAT))
%\set Staff.extraNatural = ##f
  re reb \dwn reb resd
  dod dob dosd \dwn dob |
  dobsb dodsd do do |
}

[image of music]


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated by gub on July 13, 2020 using texi2html 1.82.