]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/grid-lines--emphasizing-rhythms-and-notes-synchronization.ly
Imported Upstream version 2.14.2
[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.0"
8
9 \header {
10   lsrtags = "editorial-annotations"
11
12 %% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c
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 \score {
33   \new ChoirStaff {
34     \relative c'' <<
35       \new Staff {
36         \time 12/8
37         \stemUp
38         c4. d8 e8 f g4 f8 e8. d16 c8
39       }
40       \new Staff {
41         % hides staff and notes so that only the grid lines are visible
42         \hideNotes
43         \override Staff.BarLine #'transparent = ##t
44         \override Staff.StaffSymbol #'line-count = #0
45         \override Staff.TimeSignature #'transparent = ##t
46         \override Staff.Clef #'transparent = ##t
47
48         % dummy notes to force regular note spacing
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         \once  \override Score.GridLine #'thickness = #4.0
54         c8 c c
55         \once  \override Score.GridLine #'thickness = #3.0
56         c8 c c
57       }
58     >>
59   }
60   \layout {
61     \context {
62       \Score
63       \consists "Grid_line_span_engraver"
64       % center grid lines horizontally below note heads
65       \override NoteColumn #'X-offset = #-0.5
66     }
67     \context {
68       \Staff
69       \consists "Grid_point_engraver"
70       gridInterval = #(ly:make-moment 1 8)
71       % set line length and positioning:
72       % two staff spaces above center line on hidden staff
73       % to four spaces below center line on visible staff
74       \override GridPoint #'Y-extent = #'(2 . -4)
75     }
76     ragged-right = ##t
77   }
78 }
79