Hi Peter,

On Sun, May 12, 2013 at 8:45 AM, Peter Toye <lilyp...@ptoye.com> wrote:

>  I need to have a sequence of text spanners (like Rall --- en --- tan ---
> do)
>
> The problem is that because of the varying height of objects on the stave,
> the following code places the different bits of text at different vertical
> positions.
>
> I can't see anything in the documentation about forcing the text spanners
> to follow on from each other. What am I missing please?
>

Generally, you can adjust 'padding or 'staff-padding for the text spanner.
 If the value is large enough, LilyPond is able to align the spanners
vertically.  (You'll note that I've done just that in the example below,)
 Here, there's the additional complication of a spanner beginning and
ending at the same timestep.  The best I could come up with to get the
effect you want is to separate them.  I'd hope there's a better way--this
seems fussy,

--David


%%%%%%%%%%%%%%%%%%%%%

\version "2.16.2"

\language "english"

OboePart= {

  \key a \minor
  \clef treble
  \time 2/4

  \relative c'' {
    \override TextSpanner #'staff-padding = #2
    \override TextSpanner #'(bound-details left text) = "Rallen"
    g8.\startTextSpan g16 g8 g8 | << { b4\> } { s8.. s32\stopTextSpan } >>
    \override TextSpanner #'(bound-details left text) = "tando"
    a4~\startTextSpan| a2\!\stopTextSpan \bar "|."
  }
}

\score {
  \new Staff \with {
    instrumentName = "Oboe"
  }
  \OboePart
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to