]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/grid-lines--changing-their-appearance.ly
Merge commit 'origin/master'
[lilypond.git] / Documentation / snippets / grid-lines--changing-their-appearance.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.4"
5
6 \header {
7   lsrtags = "editorial-annotations"
8
9 %% Translation of GIT committish: b2d4318d6c53df8469dfa4da09b27c15a374d0ca
10   texidoces = "
11 Se puede cambiar el aspecto de las líneas de rejilla
12 sobreescribiendo algunas de sus propiedades.
13
14 "
15   doctitlees = "Líneas de rejilla: modificar su aspecto"
16
17 %% Translation of GIT committish: d96023d8792c8af202c7cb8508010c0d3648899d
18   texidocde = "
19 Die Erscheinung der Gitternetzlinien kann durch einige Eigenschaften
20 geändert werden.
21
22 "
23   doctitlede = "Gitternetzlinien: Aussehen verändern"
24
25   texidoc = "
26 The appearance of grid lines can be changed by overriding some of their
27 properties.
28
29 "
30   doctitle = "Grid lines: changing their appearance"
31 } % begin verbatim
32
33 \score {
34   \new ChoirStaff <<
35     \new Staff {
36       \relative c'' {
37         \stemUp
38         c'4. d8 e8 f g4
39       }
40     }
41     \new Staff {
42       \relative c {
43         % this moves them up one staff space from the default position
44         \override Score.GridLine #'extra-offset = #'(0.0 . 1.0)
45         \stemDown
46         \clef bass
47         \once \override Score.GridLine #'thickness = #5.0
48         c4
49         \once \override Score.GridLine #'thickness = #1.0
50         g'4
51         \once \override Score.GridLine #'thickness = #3.0
52         f4
53         \once \override Score.GridLine #'thickness = #5.0
54         e4
55       }
56     }
57   >>
58   \layout {
59     \context {
60       \Staff
61       % set up grids
62       \consists "Grid_point_engraver"
63       % set the grid interval to one quarter note
64       gridInterval = #(ly:make-moment 1 4)
65     }
66     \context {
67       \Score
68       \consists "Grid_line_span_engraver"
69       % this moves them to the right half a staff space
70       \override NoteColumn #'X-offset = #-0.5
71     }
72   }
73 }
74