lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Space containing text between two bars


From: Nick Payne
Subject: Re: Space containing text between two bars
Date: Sat, 27 Oct 2012 20:31:35 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1

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"|."
}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]