[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Vertical text at the end of score (help request)
From: |
Dominique Faure |
Subject: |
Re: Vertical text at the end of score (help request) |
Date: |
Thu, 18 Oct 2012 14:51:02 +0200 |
Replying to myself... :(
> Nevertheless, this solution isn't fully satisfactory, since I need to
> render several lines of text with some placement control on the result
> (at least centered on the staff group).
>
> BTW, is there a mean (other than altering the ragged-right parameter)
> to ensure that this extra final width extend would be taken in account
> while letting lilypond populate the staves on the page?
Well, I more or less found a solution for my both problems (see following code):
%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.16.0"
#(ly:set-option 'debug-skylines)
markVerticalMarkup =
#(define-music-function (parser location user-markup) (markup?)
#{
\once \override Score.RehearsalMark #'direction = #DOWN
\once \override Score.RehearsalMark #'self-alignment-X = #LEFT
\once \override TextScript #'outside-staff-priority = ##f
\once \override Score.RehearsalMark #'extra-offset = #'(0.4 . 11)
\mark \markup {
\rotate #90 {
\fontsize #-6 {
$user-markup
} } }
#})
\score {
\new StaffGroup <<
\new Staff {
R1 R1
\markVerticalMarkup \markup {
\column {
"One line of text"
"An other one"
"A third one"
} }
}
\new Staff { R1 R1 }
\new Staff { R1 R1 }
>>
}
%%%%%%%%%%%%%%%%%%%%%%%%%%
According to debugging skylines, the \markup related directive enable
extra width handling as requested, but I couldn't move the rendered
text without relying on the extra-offset parameter, which break all
these efforts.
--
Dominique
verticalMark.png
Description: PNG image
- Re: Vertical text at the end of score (help request),
Dominique Faure <=