Creating custom key signatures: Difference between revisions
Appearance
Import snippet from LSR |
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
||
| Line 1: | Line 1: | ||
LilyPond supports custom key signatures. In this example, print for D minor with an extended range of printed flats. | LilyPond supports custom key signatures. In this example, print for D minor with an extended range of printed flats. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
\new Staff \with { | \new Staff \with { | ||
\override StaffSymbol.line-count = #8 | \override StaffSymbol.line-count = #8 | ||
Revision as of 18:46, 16 November 2025
LilyPond supports custom key signatures. In this example, print for D minor with an extended range of printed flats.
\version "2.24"
\new Staff \with {
\override StaffSymbol.line-count = #8
\override KeySignature.flat-positions = #'((-7 . 6))
\override KeyCancellation.flat-positions = #'((-7 . 6))
% presumably sharps are also printed in both octaves
\override KeySignature.sharp-positions = #'((-6 . 7))
\override KeyCancellation.sharp-positions = #'((-6 . 7))
\override Clef.stencil = #
(lambda (grob)(grob-interpret-markup grob
#{ \markup\combine
\musicglyph "clefs.C"
\translate #'(-3 . -2)
\musicglyph "clefs.F"
#}))
clefPosition = #3
middleCPosition = #3
middleCClefPosition = #3
}
{
\key d\minor
f bes, f bes,
}