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