]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/grid-lines--changing-their-appearance.ly
Merge remote-tracking branch 'origin/master' into translation
[lilypond.git] / Documentation / snippets / grid-lines--changing-their-appearance.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "editorial-annotations"
11
12   texidoc = "
13 The appearance of grid lines can be changed by overriding some of their
14 properties.
15
16 "
17   doctitle = "Grid lines: changing their appearance"
18 } % begin verbatim
19
20 \score {
21   \new ChoirStaff <<
22     \new Staff {
23       \relative c'' {
24         \stemUp
25         c'4. d8 e8 f g4
26       }
27     }
28     \new Staff {
29       \relative c {
30         % this moves them up one staff space from the default position
31         \override Score.GridLine.extra-offset = #'(0.0 . 1.0)
32         \stemDown
33         \clef bass
34         \once \override Score.GridLine.thickness = #5.0
35         c4
36         \once \override Score.GridLine.thickness = #1.0
37         g'4
38         \once \override Score.GridLine.thickness = #3.0
39         f4
40         \once \override Score.GridLine.thickness = #5.0
41         e4
42       }
43     }
44   >>
45   \layout {
46     \context {
47       \Staff
48       % set up grids
49       \consists "Grid_point_engraver"
50       % set the grid interval to one quarter note
51       gridInterval = #(ly:make-moment 1/4)
52     }
53     \context {
54       \Score
55       \consists "Grid_line_span_engraver"
56       % this moves them to the right half a staff space
57       \override NoteColumn.X-offset = #-0.5
58     }
59   }
60 }