Creating custom key signatures: Difference between revisions
m New category Tags: Mobile edit Mobile web edit |
mNo edit summary |
||
| Line 1: | Line 1: | ||
LilyPond supports custom key signatures. In this example, print for D minor with an extended range of | LilyPond supports custom key signatures. In this example, print for D minor with an extended range of shown flats. | ||
<lilypond version="2.24"> | <lilypond version="2.24"> | ||
| Line 10: | Line 10: | ||
\override KeyCancellation.sharp-positions = #'((-6 . 7)) | \override KeyCancellation.sharp-positions = #'((-6 . 7)) | ||
\override Clef.stencil = # | \override Clef.stencil = | ||
#(lambda (grob) | |||
(grob-interpret-markup grob | |||
#{ \markup\combine | |||
\musicglyph "clefs.C" | |||
\translate #'(-3 . -2) | |||
\musicglyph "clefs.F" | |||
#})) | |||
clefPosition = #3 | clefPosition = #3 | ||
middleCPosition = #3 | middleCPosition = #3 | ||