]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/grid-lines--changing-their-appearance.ly
73350a3ebb0f6884eb9de37c3155681dceaa62eb
[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.16"
5
6 \header {
7   lsrtags = "editorial-annotations"
8
9 %% Translation of GIT committish: 2b0dc29608d6c3f5a03ead4877ae514c647adb74
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: 0a868be38a775ecb1ef935b079000cebbc64de40
18   texidocde = "
19 Die Erscheinung der Gitternetzlinien kann durch einige Eigenschaften
20 geändert werden.
21
22 "
23   doctitlede = "Gitternetzlinien: Aussehen verändern"
24 %% Translation of GIT committish: 9ccf7f0f5e52e074f3b7852416ad5b78718395c8
25   texidocfr = "
26 Modifier certaines des propriétés du cadrillage temporel aura pour effet
27 d'en changer l'apparence.
28
29 "
30   doctitlefr = "Apparence du cadrillage temporel"
31
32
33   texidoc = "
34 The appearance of grid lines can be changed by overriding some of their
35 properties.
36
37 "
38   doctitle = "Grid lines: changing their appearance"
39 } % begin verbatim
40
41 \score {
42   \new ChoirStaff <<
43     \new Staff {
44       \relative c'' {
45         \stemUp
46         c'4. d8 e8 f g4
47       }
48     }
49     \new Staff {
50       \relative c {
51         % this moves them up one staff space from the default position
52         \override Score.GridLine #'extra-offset = #'(0.0 . 1.0)
53         \stemDown
54         \clef bass
55         \once \override Score.GridLine #'thickness = #5.0
56         c4
57         \once \override Score.GridLine #'thickness = #1.0
58         g'4
59         \once \override Score.GridLine #'thickness = #3.0
60         f4
61         \once \override Score.GridLine #'thickness = #5.0
62         e4
63       }
64     }
65   >>
66   \layout {
67     \context {
68       \Staff
69       % set up grids
70       \consists "Grid_point_engraver"
71       % set the grid interval to one quarter note
72       gridInterval = #(ly:make-moment 1 4)
73     }
74     \context {
75       \Score
76       \consists "Grid_line_span_engraver"
77       % this moves them to the right half a staff space
78       \override NoteColumn #'X-offset = #-0.5
79     }
80   }
81 }
82