]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/grid-lines--emphasizing-rhythms-and-notes-synchronization.ly
Docs: reorganize documentation directory structure
[lilypond.git] / Documentation / snippets / grid-lines--emphasizing-rhythms-and-notes-synchronization.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.13.1"
4
5 \header {
6   lsrtags = "editorial-annotations"
7
8 %% Translation of GIT committish: 55ea64f469d9c1703222654c9e5bc8490b04a67a
9   texidoces = "
10 Se pueden trazar líneas verticales normales entre pentagramas para
11 mostrar la relación entre notas; sin embargo, en caso de música
12 monofónica, podemos hacer invisible el segundo pentagrama, y que
13 las líneas sean más cortas, como en este fragmento de código.
14
15 "
16   doctitlees = "Líneas de rejilla: destacar ritmos y la relación temporal entre notas"
17
18   texidoc = "
19 Regular vertical lines can be drawn between staves to show note
20 synchronization; however, in case of monophonic music, you may want to
21 make the second stave invisible, and make the lines shorter like in
22 this snippet.
23
24 "
25   doctitle = "Grid lines: emphasizing rhythms and notes synchronization"
26 } % begin verbatim
27
28 \score {
29   \new ChoirStaff {
30     \relative c'' <<
31       \new Staff {
32         \time 12/8
33         \stemUp
34         c4. d8 e8 f g4 f8 e8. d16 c8
35       }
36       \new Staff {
37         % hides staff and notes so that only the grid lines are visible
38         \hideNotes
39         \override Staff.BarLine #'transparent = ##t
40         \override Staff.StaffSymbol #'line-count = #0
41         \override Staff.TimeSignature #'transparent = ##t
42         \override Staff.Clef #'transparent = ##t
43         
44         % dummy notes to force regular note spacing
45         \once  \override Score.GridLine #'thickness = #4.0
46         c8 c c
47         \once  \override Score.GridLine #'thickness = #3.0
48         c8 c c
49         \once  \override Score.GridLine #'thickness = #4.0
50         c8 c c
51         \once  \override Score.GridLine #'thickness = #3.0
52         c8 c c
53       }
54     >>
55   }
56   \layout {
57     \context {
58       \Score
59       \consists "Grid_line_span_engraver"
60       % center grid lines horizontally below note heads
61       \override NoteColumn #'X-offset = #-0.5
62     }
63     \context {
64       \Staff
65       \consists "Grid_point_engraver"
66       gridInterval = #(ly:make-moment 1 8)
67       % set line length and positioning:
68       % two staff spaces above center line on hidden staff
69       % to four spaces below center line on visible staff
70       \override GridPoint #'Y-extent = #'(2 . -4)
71     }
72     ragged-right = ##t
73   }
74 }
75