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
6 % This file is in the public domain.
7 %% Note: this file works from version 2.18.0
11 lsrtags = "tweaks-and-overrides, pitches, staff-notation, contexts-and-engravers"
14 LilyPond supports custom key signatures. In this example, print for D
15 minor with an extended range of printed flats.
17 doctitle = "Creating custom key signatures"
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))
29 \override Clef.stencil = #
30 (lambda (grob)(grob-interpret-markup grob
32 \musicglyph #"clefs.C"
33 \translate #'(-3 . -2)
34 \musicglyph #"clefs.F"
38 middleCClefPosition = #3