Grid lines: adding vertical lines between staves: Difference between revisions
Appearance
Import snippet from LSR |
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
||
| Line 1: | Line 1: | ||
Vertical lines can be drawn between staves synchronized with the notes. | Vertical lines can be drawn between staves synchronized with the notes. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
%% http://lsr.di.unimi.it/LSR/Item?id=424 | %% http://lsr.di.unimi.it/LSR/Item?id=424 | ||
Revision as of 18:48, 16 November 2025
Vertical lines can be drawn between staves synchronized with the notes.
\version "2.24"
%% http://lsr.di.unimi.it/LSR/Item?id=424
\layout {
\context {
\Staff
\consists "Grid_point_engraver" %% active les guides
gridInterval = #(ly:make-moment 1/4)
}
\context {
\Score
\consists "Grid_line_span_engraver"
%% centre les lignes guides horizontalement sous les notes
}
}
\score {
\new ChoirStaff <<
\new Staff \relative c' {
\stemUp
c'4. d8 e8 f g4
}
\new Staff \relative c {
%% centre les lignes guides verticalement
\clef bass
\stemDown
c4 g' f e
}
>>
}