]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/printing-music-with-different-time-signatures.ly
Docs: LM Templates: add hymn tune template
[lilypond.git] / Documentation / snippets / printing-music-with-different-time-signatures.ly
index c9f08956cb43f2972659f568a1b507d50f4f61d8..93801706758d7858c2a6b689079f02829814b3a3 100644 (file)
@@ -1,7 +1,7 @@
 %% Do not edit this file; it is automatically
 %% generated from LSR http://lsr.dsi.unimi.it
 %% This file is in the public domain.
-\version "2.13.4"
+\version "2.13.29"
 
 \header {
   lsrtags = "rhythms, percussion"
@@ -14,6 +14,13 @@ each part, the @code{Default_barline_engraver} and
 @code{Timing_translator} are moved from the @code{Score} context to the
 @code{Staff} context.
 
+If bar numbers are required, the @code{Bar_number_engraver} should also
+be moved, since it relies on properties set by the
+@code{Timing_translator}; a @code{\\with} block can be used to add bar
+numbers to the relevant staff.
+
+
+
 "
   doctitle = "Printing music with different time signatures"
 } % begin verbatim
@@ -29,8 +36,8 @@ global = { \time 3/4 { s2.*3 } \bar "" \break { s2.*3 } }
   \context {
     \Score
     \remove "Timing_translator"
-    \remove "Time_signature_engraver"
     \remove "Default_bar_line_engraver"
+    \remove "Bar_number_engraver"
     \override SpacingSpanner #'uniform-stretching = ##t
     \override SpacingSpanner #'strict-note-spacing = ##t
     proportionalNotationDuration = #(ly:make-moment 1 64)
@@ -39,7 +46,6 @@ global = { \time 3/4 { s2.*3 } \bar "" \break { s2.*3 } }
     \Staff
     \consists "Timing_translator"
     \consists "Default_bar_line_engraver"
-    \consists "Time_signature_engraver"
   }
   \context {
     \Voice
@@ -48,7 +54,11 @@ global = { \time 3/4 { s2.*3 } \bar "" \break { s2.*3 } }
   }
 }
 
-Bassklarinette = \new Staff <<
+Bassklarinette = \new Staff \with {
+  \consists "Bar_number_engraver"
+  barNumberVisibility = #(every-nth-bar-number-visible 2)
+  \override BarNumber #'break-visibility = #end-of-line-invisible
+} <<
   \global {
     \bar "|"
     \clef treble