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