]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/creating-custom-key-signatures.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / Documentation / snippets / creating-custom-key-signatures.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "contexts-and-engravers, pitches, staff-notation, tweaks-and-overrides"
11
12   texidoc = "
13 LilyPond supports custom key signatures.  In this example, print for D
14 minor with an extended range of printed flats.
15
16 "
17   doctitle = "Creating custom key signatures"
18 } % begin verbatim
19
20 \new Staff \with {
21   \override StaffSymbol.line-count = #8
22   \override KeySignature.flat-positions = #'((-7 . 6))
23   \override KeyCancellation.flat-positions = #'((-7 . 6))
24   % presumably sharps are also printed in both octaves
25   \override KeySignature.sharp-positions = #'((-6 . 7))
26   \override KeyCancellation.sharp-positions = #'((-6 . 7))
27
28   \override Clef.stencil = #
29   (lambda (grob)(grob-interpret-markup grob
30   #{ \markup\combine
31     \musicglyph #"clefs.C"
32     \translate #'(-3 . -2)
33     \musicglyph #"clefs.F"
34    #}))
35     clefPosition = #3
36     middleCPosition = #3
37     middleCClefPosition = #3
38 }
39
40 {
41   \key d\minor
42   f bes, f bes,
43 }