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