Oops I forgot to include one missing variable for my previous emailed example, just add this too:
varMarkCoda = { \once \override Score.RehearsalMark #'self-alignment-X = #center \once \override Score.RehearsalMark #'padding = \varPadToCodaMark \once \override Score.RehearsalMark #'font-size = #3.0 \once \override Score.RehearsalMark #'break-align-symbol = #'key-signature \mark \markup { \musicglyph #"scripts.coda" \super \smaller \column { "To" "Coda" } } Rick Hansen (aka RickH) wrote: > > > > Ander D wrote: >> >> I have a solo voice score. It has two sections. The first section has >> two >> verses. The first verse has its own ending and the second verse also has >> its >> own ending, which comprises the rest of the song. The second section has >> a DS >> al coda. I need help with organizing this arrangement; where do all >> these >> pieces go? >> >> >> >> _______________________________________________ >> lilypond-user mailing list >> lilypond-user@gnu.org >> http://lists.gnu.org/mailman/listinfo/lilypond-user >> >> > > > The area in front of an ending coda should have about an inch of > whitespace in front, IOW the staff should begin again with a new clef and > key (time sig is optional). There currently is no perfect way to make > this happen in LP, but here is a technique I have used to stop the staff > and re-start it and get the Coda marks to appear normal: > > > > % In my globals.ly file I might have the following variables: > > \varKey = { \key bf major } > > \varPadDcDsMark = #10 > \varPadTargetCodaMark = #10 > \varPadSegnoMark = #10 > > varMarkSegno = { > \once \override Score.RehearsalMark #'padding = \varPadSegnoMark > \once \override Score.RehearsalMark #'font-size = #3.0 > \mark \markup { \smaller { \musicglyph #"scripts.segno" } } > } > > varMarkDsAlCoda = { > \once \override Score.RehearsalMark #'self-alignment-X = #right > \once \override Score.RehearsalMark #'padding = \varPadDcDsMark > \once \override Score.RehearsalMark #'font-size = #0.6 > \mark \markup { \bold "D.S. al Coda " } } > > varMarkEndCodaDS = { > \varMarkDsAlCoda > \stopStaff > \cadenzaOn > \skip1 > \cadenzaOff > \once \set Staff.forceClef = ##t > \clef treble > \varKey > \bar "" > \startStaff > \once \override Score.RehearsalMark #'self-alignment-X = #right > \once \override Score.RehearsalMark #'padding = \varPadTargetCodaMark > \once \override Score.RehearsalMark #'font-size = #3.0 > \mark \markup { \musicglyph #"scripts.coda" \super \smaller { Coda } } > } > > > > % Then in the piece I use these variables as follows (this should compile > in a score using english.ly): > > Notice the "to coda" appears at bar 5, the "segno" appears at the pickup > bar, and both the "DS al" and "target coda" appears at bars 19 and 20 with > the proper whitespace in between, simple. The only caveat is that you > must get bar 18 to also include itself on the same system as bar 19 and > 20, IOW the whitespace does not work across a system break. So you may > need to force a line break to get this to happen depending on paper, > fontsize, etc. (Note, whitespace and clef/key restatement in front of > target Codas is standard style for the music publishers association > MPA.org). > > > > Song is "As Time Goes By" > > > > varVoiceMelody = \relative c'' { > %0 > \partial 8 g'8 > | > %1 > \repeat volta 2 { > \varMarkSegno > af8. g16 f8. ef16 f4. g8 > | > %2 > bf8. af16 g8. f16 af4. bf8 > | > %3 > ef8. d16 c8. bf16 c2 > | > %4 > r2 r4 d4 > | > %5 > f8. ef16 d8. c16 d4 ef > \varMarkCoda > | > } > %6 > \alternative { > { > bf4 bf ef, f > | > %7 > g1~ > | > %8 > g2 r4 r8 g8 > | > } > { > %9 > bf4 bf ef, f > | > %10 > ef1~ > | > %11 > ef2 r2 > \bar "||" > } > } > %12 > ef8. f16 ef8. c'16~ c4 c > | > %13 > c8. df16 c8. b16 c2 > | > %14 > f,8. g16 f8. c'16~ c4 c > | > %15 > c8. d16 c8. b16 c2 > | > %16 > g8. af16 g8. ef'16~ ef4 ef > | > %17 > ef8. d16 ef8. d16 f4 d > | > %18 > c4 c g g > | > %19 > bf2. r8 g > \bar "||" > { > %20 > \varMarkEndCodaDS > bf4 bf2 g4 > | > %21 > bf2 c > | > %22 > ef2. r4 > \bar "|." > } > } > > > Rick > > > -- View this message in context: http://www.nabble.com/Lyrics%2C-multiple-endings%2C-and-codas-tf2876146.html#a8149684 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user