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