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