]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/grid-lines-changing-their-appearance.ly
Merge branch 'lilypond/translation'
[lilypond.git] / input / lsr / grid-lines-changing-their-appearance.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.38"
4
5 \header {
6   lsrtags = "editorial-and-educational-use"
7  texidoc = "
8 Grid lines can look differently, by modifying some of their properties
9 using the @code{\\override} command.
10 " }
11 % begin verbatim
12 \layout {
13  \context {
14    \Staff
15    % sets up grids
16    \consists "Grid_point_engraver"
17    % this sets the grid interval to 1 quarternote (crotchet)
18    gridInterval = #(ly:make-moment 1 4)
19   }
20 }
21
22 \new Score \with {
23  \consists "Grid_line_span_engraver"
24  % this moves them to the right half a staff space
25  \override NoteColumn #'X-offset = #-0.5
26 }
27
28 \new ChoirStaff <<
29   \new Staff {
30     \relative c'' {
31       \stemUp
32       c'4. d8 e8 f g4
33     }
34   }
35   \new Staff {
36     \relative c {
37       % this moves them up one staff space from the default position
38       \override Score.GridLine #'extra-offset = #'( 0.0 . 1.0 )
39       \stemDown
40       \clef bass
41       \once \override Score.GridLine #'thickness = #5.0
42       c4
43       \once \override Score.GridLine #'thickness = #1.0
44       g'
45       \once \override Score.GridLine #'thickness = #3.0
46       f
47       \once \override Score.GridLine #'thickness = #5.0
48       e
49     }
50   }
51 >>