Warn about missing repeat: Difference between revisions
m Added minor comment in the example |
mNo edit summary |
||
| Line 3: | Line 3: | ||
<code>warning: Global repeat not stated in context #<Context Staff=lower (#<Context Voice () >) ></code> | <code>warning: Global repeat not stated in context #<Context Staff=lower (#<Context Voice () >) ></code> | ||
The definition of the <code> Repeat_warn_engraver </code> and the lines adding it to the <code> Staff </code> context can preferably be placed in a separate file to be <code>\include</code> | The definition of the <code>Repeat_warn_engraver</code> and the lines adding it to the <code>Staff</code> context can preferably be placed in a separate file to be <code>\include</code>d in your music files as part of the proof reading process. | ||
<lilypond version="2.24"> | <lilypond version="2.24"> | ||
| Line 42: | Line 42: | ||
c'1 | c'1 | ||
\repeat volta 2 { c' c' c' } | \repeat volta 2 { c' c' c' } | ||
% \repeat volta 2 { % Typo! Missing repeat, which normally is not detected | % \repeat volta 2 { % Typo! Missing repeat, which normally is not detected | ||
e | e | ||
% } | % } | ||
| Line 48: | Line 48: | ||
>> | >> | ||
</lilypond> | </lilypond> | ||
[[Category:Contexts and engravers]] | |||
[[Category:Repeats]] | |||
[[Category:Scheme]] | |||
[[Category:Snippet]] | |||