lilypond-user
[Top][All Lists]
Advanced

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

Re: Rotating TextSpanner


From: Kieren MacMillan
Subject: Re: Rotating TextSpanner
Date: Fri, 24 Apr 2009 21:21:34 -0400

Hi Nick,

Any suggestions (other than trial and error alignment of separate elements) on how to get an effect similar to that in the attached image, where the
line is rotated but the text is not.

The following should help:

\version "2.12.2"

setTS =
{
        \override TextSpanner #'direction = #-1
        \override TextSpanner #'dash-fraction = #0.4
        \override TextSpanner #'dash-period = #1
\override TextSpanner #'(bound-details left text) = \markup \raise #0.5 "stacc."
        \override TextSpanner #'(bound-details left padding) = #-1
\override TextSpanner #'bound-details #'right #'text = \markup { \draw-line #'(0 . 4) }
        \override TextSpanner #'(bound-details right padding) = #-1.5
        \override TextSpanner #'(bound-details right Y) = #7
        \override TextSpanner #'extra-offset = #'(0 . 9)
}

music = \relative
{
        \override Staff.TimeSignature #'stencil = ##f \time 3/4
        <<
                { \voiceOne s4 s8 r4. r2. }
\new Voice { \voiceTwo \setTS s4 f,8\startTextSpan a b d f[ a b d f a ]\stopTextSpan }
        >>
}

\score
{
        \music
        \layout { ragged-right = ##f }
}

Best,
Kieren.




reply via email to

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