]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/grid-lines--changing-their-appearance.ly
Merge branch 'master' of ssh://kainhofer@git.sv.gnu.org/srv/git/lilypond into dev...
[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-annotations"
7
8   texidoc = "
9 The appearance of grid lines can be changed by overriding some of their
10 properties.
11
12 "
13   doctitle = "Grid lines: changing their appearance"
14 } % begin verbatim
15 \layout {
16  \context {
17    \Staff
18    % set up grids
19    \consists "Grid_point_engraver"
20    % set the grid interval to one quarter note
21    gridInterval = #(ly:make-moment 1 4)
22   }
23 }
24
25 \new Score \with {
26  \consists "Grid_line_span_engraver"
27  % this moves them to the right half a staff space
28  \override NoteColumn #'X-offset = #-0.5
29 }
30
31 \new ChoirStaff <<
32   \new Staff {
33     \relative c'' {
34       \stemUp
35       c'4. d8 e8 f g4
36     }
37   }
38   \new Staff {
39     \relative c {
40       % this moves them up one staff space from the default position
41       \override Score.GridLine #'extra-offset = #'(0.0 . 1.0)
42       \stemDown
43       \clef bass
44       \once \override Score.GridLine #'thickness = #5.0
45       c4
46       \once \override Score.GridLine #'thickness = #1.0
47       g'
48       \once \override Score.GridLine #'thickness = #3.0
49       f
50       \once \override Score.GridLine #'thickness = #5.0
51       e
52     }
53   }
54 >>