Previous: Parentheses, Up: Educational use


8.5.9 Grid lines

Vertical lines can be drawn between staves synchronized with the notes.

     
     \layout {
       \context {
         \Staff
         \consists "Grid_point_engraver" %% sets of grid
         gridInterval = #(ly:make-moment 1 4)
       }
     }
     
     \new Score \with {
       \consists "Grid_line_span_engraver"
       %% centers grid lines  horizontally below noteheads
       \override NoteColumn #'X-offset = #-0.5
     }
     
     \new ChoirStaff <<
       \new Staff {
         \stemUp
         \relative {
           c'4. d8 e8 f g4
         }
       }
       \new Staff {
         %% centers grid lines  vertically
         \override Score.GridLine #'extra-offset = #'( 0.0 . 1.0 )
         \stemDown
         \clef bass
         \relative c {
           c4  g'  f  e
         }
       }
     >>

[image of music]

Examples: education/


Previous: Parentheses, Up: Educational use

Diese Seite ist für LilyPond-2.11.28 (Entwicklungszweig).

Fehler bitte an http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs melden.

Your suggestions for the documentation are welcome.