Automatically display key names above key signatures: Difference between revisions
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 |
Don't use key cancelation |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
This snippet automatically displays the name of the key above the key signature. This is helpful when learning the key signatures, or to easily see whether a key is major, minor, or modal (dorian, phrygian, lydian, etc.). It works by creating a custom key signature engraver. | This snippet automatically displays the name of the key above the key signature. This is helpful when learning the key signatures, or to easily see whether a key is major, minor, or modal (dorian, phrygian, lydian, etc.). It works by creating a custom key signature engraver. | ||
<lilypond version="2.24" | <lilypond version="2.24"> | ||
%% http://lsr.di.unimi.it/LSR/Item?id=856 | %% http://lsr.di.unimi.it/LSR/Item?id=856 | ||
| Line 105: | Line 105: | ||
\new Staff \relative f'' { | \new Staff \relative f'' { | ||
\set Staff.printKeyCancellation = ##f | |||
\key c \major | \key c \major | ||
c1 | c1 | ||
| Line 132: | Line 133: | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Contexts and engravers]] | [[Category:Contexts and engravers]] | ||
[[Category:Snippet]] | |||