On 27/10/12 14:51, Nick Payne wrote:
> How can I achieve an output that looks like the attached example, where
> the final bar of the piece is separated from the preceding bars by some
> text? Is there an LSR snippet that has this sort of layout?
>
>
Well I managed to get it all working except for the repeat alternative
type bracket above the final bar. Any easy(ish) way of achieving that?

\version "2.16.0"

DCSegnoTextSymbolCenter = {
  \once \override TextScript #'extra-offset = #'(-18 . 5.5)
%  \once \override TextScript #'word-space = #1.5
  <>_\markup {
    \center-column {
      \concat { "D.C. hasta " \halign #-1 \raise #1 \small { \musicglyph
#"scripts.segno" } " y" }
      \line { "salta a Fin" }
    }
  }
}

barspace = #(define-music-function (parser location extent) (pair?) #{
    \once \override Staff.BarLine #'extra-spacing-width = #extent
#})

makeGap = { \repeat unfold 3 { \barspace #'(-4 . 4) \hideNotes a2.
\unHideNotes \noBreak } }

\relative c'' {
  \time 3/4
  \repeat volta 2 { c4 c c }
  \alternative {
    { c c c }
    { c c c }
  }
  \noBreak \stopStaff \cadenzaOn
  \makeGap
  \bar ""
  \DCSegnoTextSymbolCenter
  \cadenzaOff \startStaff
  c-\tweak #'extra-offset #'(-0.5 . 0)^\markup { Fin } c c |
  \bar"|."
}


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to