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.21.2" 8 9\header { 10 lsrtags = "paper-and-layout, staff-notation, syntax-and-expressions" 11 12 texidoc = " 13This snippet shows how to achieve vertically aligned StaffGroups with a 14SystemStartBar for each StaffGroup, but without connecting them. 15 16" 17 doctitle = "Vertical aligned StaffGroups without connecting SystemStartBar" 18} % begin verbatim 19 20% by Thomas Morley 21 22#(set-global-staff-size 18) 23 24\paper { 25 indent = 0 26 ragged-right = ##f 27 print-all-headers = ##t 28} 29 30\layout { 31 \context { 32 \Staff 33 \consists "Mark_engraver" 34 \override RehearsalMark.self-alignment-X = #LEFT 35 } 36 \context { 37 \StaffGroup 38 systemStartDelimiterHierarchy = 39 #'(SystemStartBrace (SystemStartBracket a b)) 40 } 41 \context { 42 \Score 43 \override SystemStartBrace.style = #'bar-line 44 \omit SystemStartBar 45 \override SystemStartBrace.padding = #-0.1 46 \override SystemStartBrace.thickness = #1.6 47 \remove "Mark_engraver" 48 \override StaffGrouper.staffgroup-staff-spacing.basic-distance = #15 49 } 50} 51 52%%%% EXAMPLE 53 54txt = 55\lyricmode { 56 Wer4 nur den lie -- ben Gott läßt wal2 -- ten4 57 und4 hof -- fet auf ihn al -- le Zeit2. 58} 59 60% First StaffGroup "exercise" 61 62eI = 63\relative c' { 64 \mark \markup { 65 \bold Teacher: 66 This is a simple setting of the choral. Please improve it. 67 } 68 \key a \minor 69 \time 4/4 70 \voiceOne 71 72 \partial 4 73 e4 74 a b c b 75 a b gis2 76 e4\fermata g! g f 77 e a a gis 78 a2.\fermata 79 \bar ":|." 80} 81 82eII = 83\relative c' { 84 \key a \minor 85 \time 4/4 86 \voiceTwo 87 \partial 4 88 c4 89 e e e gis 90 a f e2 91 b4 b d d 92 c c d d 93 c2. 94 \bar ":|." 95} 96 97eIII = 98\relative c' { 99 \key a \minor 100 \time 4/4 101 \clef bass 102 \voiceOne 103 104 \partial 4 105 a4 106 c b a b 107 c d b2 108 gis4 g g b 109 c a f e 110 e2. 111} 112 113eIV = 114\relative c' { 115 \key a \minor 116 \time 4/4 117 \clef bass 118 \voiceTwo 119 120 \partial 4 121 a,4 122 a' gis a e 123 a, d e2 124 e,4\fermata e' b g 125 c f d e 126 a,2.\fermata 127 \bar ":|." 128} 129 130exercise = 131\new StaffGroup = "exercise" 132<< 133 134 \new Staff 135 << 136 \new Voice \eI 137 \new Voice \eII 138 >> 139 140 \new Lyrics \txt 141 142 \new Staff 143 << 144 \new Voice \eIII 145 \new Voice \eIV 146 >> 147>> 148 149% Second StaffGRoup "simple Bach" 150 151sbI = 152\relative c' { 153 \mark \markup { \bold" Pupil:" Here's my version! } 154 \key a \minor 155 \time 4/4 156 \voiceOne 157 158 \partial 4 159 e4 160 a b c b 161 a b gis2 162 e4\fermata g! g f 163 e a a gis 164 a2.\fermata 165 \bar ":|." 166} 167 168sbII = 169\relative c' { 170 \key a \minor 171 \time 4/4 172 \voiceTwo 173 \partial 4 174 c8 d 175 e4 e e8 f g4 176 f f e2 177 b4 b8 c d4 d 178 e8 d c4 b8 c d4 179 c2. 180 \bar ":|." 181} 182 183sbIII = 184\relative c' { 185 \key a \minor 186 \time 4/4 187 \clef bass 188 \voiceOne 189 190 \partial 4 191 a8 b 192 c4 b a b8 c 193 d4 d8 c b2 194 gis4 g g8 a b4 195 b a8 g f4 e 196 e2. 197} 198 199sbIV = 200\relative c' { 201 \key a \minor 202 \time 4/4 203 \clef bass 204 \voiceTwo 205 206 \partial 4 207 a,4 208 a' gis a e 209 f8 e d4 e2 210 e,4\fermata e' b a8 g 211 c4 f8 e d4 e 212 a,2.\fermata 213 \bar ":|." 214} 215 216simpleBach = 217\new StaffGroup = "simple Bach" 218<< 219 220 \new Staff 221 << 222 \new Voice \sbI 223 \new Voice \sbII 224 >> 225 226 \new Lyrics \txt 227 228 \new Staff 229 << 230 \new Voice \sbIII 231 \new Voice \sbIV 232 >> 233>> 234 235% Third StaffGroup "chromatic Bach" 236 237cbI = 238\relative c' { 239 \mark \markup { 240 \bold "Teacher:" 241 \column { 242 "Well, you simply copied and transposed a version of J.S.Bach." 243 "Do you know this one?" 244 } 245 } 246 \key a \minor 247 \time 4/4 248 \voiceOne 249 250 \partial 4 251 e4 252 a b c b 253 a b gis4. fis8 254 e4\fermata g! g f 255 e a a8 b gis4 256 a2.\fermata 257 \bar ":|." 258} 259 260cbII = 261\relative c' { 262 \key a \minor 263 \time 4/4 264 \voiceTwo 265 \partial 4 266 c8 d 267 e4 e e8 fis gis4 268 a8 g! f!4 e2 269 b4 e e d 270 d8[ cis] d dis e fis e4 271 e2. 272 \bar ":|." 273} 274 275cbIII = 276\relative c' { 277 \key a \minor 278 \time 4/4 279 \clef bass 280 \voiceOne 281 282 \partial 4 283 a8 b 284 c[ b] a gis8 a4 d, 285 e8[ e'] d c b4. a8 286 gis4 b c d8 c 287 b[ a] a b c b b c16 d 288 c2. 289} 290 291cbIV = 292\relative c' { 293 \key a \minor 294 \time 4/4 295 \clef bass 296 \voiceTwo 297 298 \partial 4 299 a4 300 c, e a, b 301 c d e2 302 e4\fermata e a b8 c 303 gis[ g] fis f e dis e4 304 a,2.\fermata 305 \bar ":|." 306} 307 308chromaticBach = 309\new StaffGroup = "chromatic Bach" 310<< 311 312 \new Staff 313 << 314 \new Voice \cbI 315 \new Voice \cbII 316 >> 317 318 \new Lyrics \txt 319 320 \new Staff 321 << 322 \new Voice \cbIII 323 \new Voice \cbIV 324 >> 325>> 326 327 328% Score 329 330\score { 331 << 332 \exercise 333 \simpleBach 334 \chromaticBach 335 >> 336 \header { 337 title = \markup 338 \column { 339 \combine \null \vspace #1 340 "Exercise: Improve the given choral" 341 " " 342 } 343 } 344 \layout { 345 \context { 346 \Lyrics 347 \override LyricText.X-offset = #-1 348 } 349 } 350} 351