Initial clef change: Difference between revisions
No edit summary |
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: | ||
Implements initial clef changes using a custom engraver. This engraves will upon encountering a difference between initial clef (as given by <code>\with { \clef ... }</code> and the clef at first timestep. If any difference is encountered a now clef (spaced like a cue clef) is created, while the original clef and any key signatures are modified to look like the initial clef values. | Implements initial clef changes using a custom engraver. This engraves will upon encountering a difference between initial clef (as given by <code>\with { \clef ... }</code> and the clef at first timestep. If any difference is encountered a now clef (spaced like a cue clef) is created, while the original clef and any key signatures are modified to look like the initial clef values. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
%%% This engraver records the initial clef properties (e.g. what is set by \with { \clef ... }) | %%% This engraver records the initial clef properties (e.g. what is set by \with { \clef ... }) | ||
%%% If in the first timestep these changed, engrave the original clef, and change formatting and break | %%% If in the first timestep these changed, engrave the original clef, and change formatting and break | ||