Consider accidentals in optical spacing correction.
[lilypond.git] / input / regression / grid-lines.ly
blob8a99130511f6946f21ee8f12e99464305edfaf2c
1 \header
4 texidoc = "With grid lines, vertical lines can be drawn between
5 staves synchronized with the notes."
8 \version "2.12.0"
10 skips =
12 \time 12/8
13 \once \override Score.GridLine #'thickness = #4.0
14 s8
15 s8
16 s8
17 \once \override Score.GridLine #'thickness = #3.0
18 s8
19 s8
20 s8
21 \once \override Score.GridLine #'thickness = #4.0
22 s8
23 s8
24 s8
25 \once \override Score.GridLine #'thickness = #3.0
26 s8
27 s8
28 s8
32 \layout {
33 \context {
34 \Staff
35 \consists "Grid_point_engraver"
39 \context {
40 \RhythmicStaff
41 \consists "Grid_point_engraver"
42 \override VerticalAxisGroup #'minimum-Y-extent = #'(-4 . 4)
43 gridInterval = #(ly:make-moment 1 8)
44 \override BarLine #'bar-size = #0.05
46 \context {
47 \StaffGroup
48 \remove "System_start_delimiter_engraver"
52 \layout {
53 ragged-right = ##t
55 \new Score
56 \with {
57 \consists "Grid_line_span_engraver"
58 \override SystemStartBrace #'transparent = ##t
60 \override NoteColumn #'X-offset = #-0.5
61 \override NoteHead #'Y-offset = #0.75
64 \new StaffGroup <<
65 \new RhythmicStaff \with
67 \override NoteHead #'no-ledgers = ##t
70 \stemUp
71 c4. c8 c8 c c4 c8 c8.[ c16 c8]
73 \new RhythmicStaff
75 \override NoteHead #'transparent = ##t
76 \override NoteHead #'no-ledgers = ##t
77 \override Stem #'transparent = ##t
78 \override Beam #'transparent = ##t
79 << \skips
81 % force regular spacing by introducing notes.
82 \repeat unfold 12 c8