From: Graham Percival Date: Mon, 30 Apr 2007 08:42:29 +0000 (-0700) Subject: Doc: add grid line example. X-Git-Tag: release/2.11.23-1~1^2~8 X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=commitdiff_plain;h=43120c2c524bc24e82682c5ac68b98f6acf15abe;p=lilypond.git Doc: add grid line example. --- diff --git a/Documentation/user/advanced-notation.itely b/Documentation/user/advanced-notation.itely index 76ae0a4eef..6187b7aedd 100644 --- a/Documentation/user/advanced-notation.itely +++ b/Documentation/user/advanced-notation.itely @@ -2581,9 +2581,44 @@ This only functions inside chords, even for single notes @node Grid lines @subsection Grid lines -@c FIXME: get an example for grid lines. -gp Vertical lines can be drawn between staves synchronized with the notes. +@lilypond[ragged-right,quote,verbatim] +\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 + } + } +>> +@end lilypond + Examples: @inputfileref{input/@/regression,grid@/-lines@/.ly}. + +