]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/grid-lines--changing-their-appearance.ly
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
[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
18 %% Translation of GIT committish: d96023d8792c8af202c7cb8508010c0d3648899d
19   texidocde = "
20 Die Erscheinung der Gitternetzlinien kann durch einige Eigenschaften
21 geändert werden.
22
23 "
24   doctitlede = "Gitternetzlinien: Aussehen verändern"
25
26   texidoc = "
27 The appearance of grid lines can be changed by overriding some of their
28 properties.
29
30 "
31   doctitle = "Grid lines: changing their appearance"
32 } % begin verbatim
33
34 \score {
35   \new ChoirStaff <<
36     \new Staff {
37       \relative c'' {
38         \stemUp
39         c'4. d8 e8 f g4
40       }
41     }
42     \new Staff {
43       \relative c {
44         % this moves them up one staff space from the default position
45         \override Score.GridLine #'extra-offset = #'(0.0 . 1.0)
46         \stemDown
47         \clef bass
48         \once \override Score.GridLine #'thickness = #5.0
49         c4
50         \once \override Score.GridLine #'thickness = #1.0
51         g'4
52         \once \override Score.GridLine #'thickness = #3.0
53         f4
54         \once \override Score.GridLine #'thickness = #5.0
55         e4
56       }
57     }
58   >>
59   \layout {
60     \context {
61       \Staff
62       % set up grids
63       \consists "Grid_point_engraver"
64       % set the grid interval to one quarter note
65       gridInterval = #(ly:make-moment 1 4)
66     }
67     \context {
68       \Score
69       \consists "Grid_line_span_engraver"
70       % this moves them to the right half a staff space
71       \override NoteColumn #'X-offset = #-0.5
72     }
73   }
74 }
75