]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/grid-lines--changing-their-appearance.ly
Imported Upstream version 2.18.0
[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.dsi.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.17.11"
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
21 \score {
22   \new ChoirStaff <<
23     \new Staff {
24       \relative c'' {
25         \stemUp
26         c'4. d8 e8 f g4
27       }
28     }
29     \new Staff {
30       \relative c {
31         % this moves them up one staff space from the default position
32         \override Score.GridLine.extra-offset = #'(0.0 . 1.0)
33         \stemDown
34         \clef bass
35         \once \override Score.GridLine.thickness = #5.0
36         c4
37         \once \override Score.GridLine.thickness = #1.0
38         g'4
39         \once \override Score.GridLine.thickness = #3.0
40         f4
41         \once \override Score.GridLine.thickness = #5.0
42         e4
43       }
44     }
45   >>
46   \layout {
47     \context {
48       \Staff
49       % set up grids
50       \consists "Grid_point_engraver"
51       % set the grid interval to one quarter note
52       gridInterval = #(ly:make-moment 1/4)
53     }
54     \context {
55       \Score
56       \consists "Grid_line_span_engraver"
57       % this moves them to the right half a staff space
58       \override NoteColumn.X-offset = #-0.5
59     }
60   }
61 }