Vertically aligned StaffGroups without connecting SystemStartBar: Difference between revisions
m New category Tags: Mobile edit Mobile web edit |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
This snippet shows how to achieve vertically aligned <code>StaffGroups</code> with a <code>SystemStartBar</code> for each <code>StaffGroup</code>, but without connecting them. | This snippet shows how to achieve vertically aligned <code>StaffGroups</code> with a <code>SystemStartBar</code> for each <code>StaffGroup</code>, but without connecting them. | ||
Note that this only works properly for music that can be printed as a single system. | |||
<lilypond version="2.24" full> | <lilypond version="2.24" full> | ||
#(set-global-staff-size | #(set-global-staff-size 15) | ||
\paper { | \paper { | ||
ragged-right = ##f | ragged-right = ##f | ||
print-all-headers = ##t | print-all-headers = ##t | ||
tagline = ##f | |||
} | } | ||
\layout { | \layout { | ||
indent = 0 | |||
\context { | \context { | ||
\StaffGroup | \StaffGroup | ||
| Line 43: | Line 45: | ||
% First StaffGroup "exercise" | % First StaffGroup "exercise" | ||
eI = | eI = \relative c' { | ||
\relative c' { | |||
\textMark \markup { | \textMark \markup { | ||
\bold Teacher: | |||
This is a simple setting of the choral. Please improve it. } | |||
\key a \minor | \key a \minor | ||
\time 4/4 | \time 4/4 | ||
\voiceOne | \voiceOne | ||
\partial 4 | \partial 4 e4 | ||
a b c b | a b c b | ||
a b gis2 | a b gis2 | ||
| Line 63: | Line 62: | ||
} | } | ||
eII = | eII = \relative c' { | ||
\relative c' { | |||
\key a \minor | \key a \minor | ||
\time 4/4 | \time 4/4 | ||
\voiceTwo | \voiceTwo | ||
\partial 4 | \partial 4 c4 | ||
e e e gis | e e e gis | ||
a f e2 | a f e2 | ||
| Line 78: | Line 75: | ||
} | } | ||
eIII = | eIII = \relative c' { | ||
\relative c' { | |||
\key a \minor | \key a \minor | ||
\time 4/4 | \time 4/4 | ||
| Line 85: | Line 81: | ||
\voiceOne | \voiceOne | ||
\partial 4 | \partial 4 a4 | ||
c b a b | c b a b | ||
c d b2 | c d b2 | ||
| Line 94: | Line 89: | ||
} | } | ||
eIV = | eIV = \relative c' { | ||
\relative c' { | |||
\key a \minor | \key a \minor | ||
\time 4/4 | \time 4/4 | ||
| Line 101: | Line 95: | ||
\voiceTwo | \voiceTwo | ||
\partial 4 | \partial 4 a,4 | ||
a' gis a e | a' gis a e | ||
a, d e2 | a, d e2 | ||
| Line 111: | Line 104: | ||
} | } | ||
exercise = | exercise = \new StaffGroup = "exercise" << | ||
\new StaffGroup = "exercise" | \new Staff << | ||
<< | \new Voice \eI | ||
\new Voice \eII | |||
\new Staff | >> | ||
\new Lyrics \txt | \new Lyrics \txt | ||
\new Staff | \new Staff << | ||
\new Voice \eIII | |||
\new Voice \eIV | |||
>> | |||
>> | >> | ||
% Second StaffGroup "simple Bach" | % Second StaffGroup "simple Bach" | ||
sbI = | sbI = \relative c' { | ||
\relative c' { | |||
\textMark \markup { \bold" Pupil:" Here's my version! } | \textMark \markup { \bold" Pupil:" Here's my version! } | ||
\key a \minor | \key a \minor | ||
| Line 139: | Line 127: | ||
\voiceOne | \voiceOne | ||
\partial 4 | \partial 4 e4 | ||
a b c b | a b c b | ||
a b gis2 | a b gis2 | ||
| Line 149: | Line 136: | ||
} | } | ||
sbII = | sbII = \relative c' { | ||
\relative c' { | |||
\key a \minor | \key a \minor | ||
\time 4/4 | \time 4/4 | ||
\voiceTwo | \voiceTwo | ||
\partial 4 | \partial 4 c8 d | ||
e4 e e8 f g4 | e4 e e8 f g4 | ||
f f e2 | f f e2 | ||
| Line 164: | Line 149: | ||
} | } | ||
sbIII = | sbIII = \relative c' { | ||
\relative c' { | |||
\key a \minor | \key a \minor | ||
\time 4/4 | \time 4/4 | ||
| Line 171: | Line 155: | ||
\voiceOne | \voiceOne | ||
\partial 4 | \partial 4 a8 b | ||
c4 b a b8 c | c4 b a b8 c | ||
d4 d8 c b2 | d4 d8 c b2 | ||
| Line 180: | Line 163: | ||
} | } | ||
sbIV = | sbIV = \relative c' { | ||
\relative c' { | |||
\key a \minor | \key a \minor | ||
\time 4/4 | \time 4/4 | ||
| Line 187: | Line 169: | ||
\voiceTwo | \voiceTwo | ||
\partial 4 | \partial 4 a,4 | ||
a' gis a e | a' gis a e | ||
f8 e d4 e2 | f8 e d4 e2 | ||
| Line 197: | Line 178: | ||
} | } | ||
simpleBach = | simpleBach = \new StaffGroup = "simple Bach" << | ||
\new StaffGroup = "simple Bach" | \new Staff << | ||
<< | \new Voice \sbI | ||
\new Voice \sbII | |||
\new Staff | >> | ||
\new Lyrics \txt | \new Lyrics \txt | ||
\new Staff | \new Staff << | ||
\new Voice \sbIII | |||
\new Voice \sbIV | |||
>> | |||
>> | >> | ||
% Third StaffGroup "chromatic Bach" | % Third StaffGroup "chromatic Bach" | ||
cbI = | cbI = \relative c' { | ||
\relative c' { | |||
\textMark \markup { | \textMark \markup { | ||
\bold "Teacher:" | \bold "Teacher:" | ||
| Line 231: | Line 207: | ||
\voiceOne | \voiceOne | ||
\partial 4 | \partial 4 e4 | ||
a b c b | a b c b | ||
a b gis4. fis8 | a b gis4. fis8 | ||
| Line 241: | Line 216: | ||
} | } | ||
cbII = | cbII = \relative c' { | ||
\relative c' { | |||
\key a \minor | \key a \minor | ||
\time 4/4 | \time 4/4 | ||
\voiceTwo | \voiceTwo | ||
\partial 4 | |||
\partial 4 c8 d | |||
e4 e e8 fis gis4 | e4 e e8 fis gis4 | ||
a8 g! f!4 e2 | a8 g! f!4 e2 | ||
| Line 256: | Line 230: | ||
} | } | ||
cbIII = | cbIII = \relative c' { | ||
\relative c' { | |||
\key a \minor | \key a \minor | ||
\time 4/4 | \time 4/4 | ||
| Line 263: | Line 236: | ||
\voiceOne | \voiceOne | ||
\partial 4 | \partial 4 a8 b | ||
c[ b] a gis8 a4 d, | c[ b] a gis8 a4 d, | ||
e8[ e'] d c b4. a8 | e8[ e'] d c b4. a8 | ||
| Line 272: | Line 244: | ||
} | } | ||
cbIV = | cbIV = \relative c' { | ||
\relative c' { | |||
\key a \minor | \key a \minor | ||
\time 4/4 | \time 4/4 | ||
| Line 279: | Line 250: | ||
\voiceTwo | \voiceTwo | ||
\partial 4 | \partial 4 a4 | ||
c, e a, b | c, e a, b | ||
c d e2 | c d e2 | ||
| Line 289: | Line 259: | ||
} | } | ||
chromaticBach = | chromaticBach = \new StaffGroup = "chromatic Bach" << | ||
\new StaffGroup = "chromatic Bach" | \new Staff << | ||
<< | \new Voice \cbI | ||
\new Voice \cbII | |||
\new Staff | >> | ||
\new Lyrics \txt | \new Lyrics \txt | ||
\new Staff | \new Staff << | ||
\new Voice \cbIII | |||
\new Voice \cbIV | |||
>> | |||
>> | >> | ||
| Line 319: | Line 284: | ||
\header { | \header { | ||
title = \markup | title = \markup \column { | ||
\combine \null \vspace #1 | |||
"Exercise: Improve the given choral" | |||
" " | |||
} | |||
} | } | ||
\layout { | \layout { | ||
\context { | \context { | ||
| Line 335: | Line 300: | ||
</lilypond> | </lilypond> | ||
[[Category:Paper and layout]] | |||
[[Category:Staff notation]] | [[Category:Staff notation]] | ||
[[Category:Syntax and expressions]] | [[Category:Syntax and expressions]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | [[Category:Snippet]] | ||