[Top][All Lists]
[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: |
Sun, 28 Oct 2012 08:19:32 +1100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 |
On 27/10/12 20:46, Phil Holmes wrote:
> ----- Original Message ----- From: "Nick Payne"
> <address@hidden>
> To: <address@hidden>
> Sent: Saturday, October 27, 2012 4:51 AM
> Subject: Space containing text between two bars
>
>
>> 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?
>>
>> Nick
>
> http://lsr.dsi.unimi.it/LSR/Item?id=198
>
> and
>
> http://lsr.dsi.unimi.it/LSR/Item?id=190
Well, the following gives the output layout that I want. I get a warning
message on the console that I haven't been able to get rid of: "already
have a volta spanner, ending that one prematurely", but it doesn't seem
to affect the output.
\version "2.16.0"
DCSegnoTextSymbolCenter = {
<>-\tweak #'extra-offset #'(-1 . 5.5)_\markup\small {
\center-column {
\concat { "D.C. hasta " \halign #-1 \raise #1 \tiny { \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 #'(-2 . 2) \hideNotes a2.
\unHideNotes \noBreak } }
\relative c'' {
\time 3/4
\repeat volta 2 {
c4 c c
\once \override Score.RehearsalMark #'self-alignment-X = #RIGHT
\mark\markup\normalsize { \musicglyph #"scripts.segno" }
\once \override Score.VoltaBracket #'shorten-pair = #'(0.5 . 0)
}
\alternative {
{ c c c }
{ c c c }
}
\noBreak \stopStaff \cadenzaOn
\bar ""
\DCSegnoTextSymbolCenter
\makeGap
\cadenzaOff \startStaff
\repeat volta 1 { }
\alternative {
<<
{
\set Score.repeatCommands = #`((volta ,#{
\markup { \text \fontsize #4 "Fin" }
#}))
c c c |
}
>>
}
\bar"|."
}
test1.png
Description: PNG image