]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/grid-lines--emphasizing-rhythms-and-notes-synchronization.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[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.di.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.18.0"
8
9 \header {
10   lsrtags = "editorial-annotations"
11
12   texidoc = "
13 Regular vertical lines can be drawn between staves to show note
14 synchronization; however, in case of monophonic music, you may want to
15 make the second stave invisible, and make the lines shorter like in
16 this snippet.
17
18 "
19   doctitle = "Grid lines: emphasizing rhythms and notes synchronization"
20 } % begin verbatim
21
22 \score {
23   \new ChoirStaff {
24     \relative c'' <<
25       \new Staff {
26         \time 12/8
27         \stemUp
28         c4. d8 e8 f g4 f8 e8. d16 c8
29       }
30       \new Staff {
31         % hides staff and notes so that only the grid lines are visible
32         \hideNotes
33         \hide Staff.BarLine
34         \override Staff.StaffSymbol.line-count = #0
35         \hide Staff.TimeSignature
36         \hide Staff.Clef
37
38         % dummy notes to force regular note spacing
39         \once  \override Score.GridLine.thickness = #4.0
40         c8 c c
41         \once  \override Score.GridLine.thickness = #3.0
42         c8 c c
43         \once  \override Score.GridLine.thickness = #4.0
44         c8 c c
45         \once  \override Score.GridLine.thickness = #3.0
46         c8 c c
47       }
48     >>
49   }
50   \layout {
51     \context {
52       \Score
53       \consists "Grid_line_span_engraver"
54       % center grid lines horizontally below note heads
55       \override NoteColumn.X-offset = #-0.5
56     }
57     \context {
58       \Staff
59       \consists "Grid_point_engraver"
60       gridInterval = #(ly:make-moment 1/8)
61       % set line length and positioning:
62       % two staff spaces above center line on hidden staff
63       % to four spaces below center line on visible staff
64       \override GridPoint.Y-extent = #'(2 . -4)
65     }
66     ragged-right = ##t
67   }
68 }