lilypond-user
[Top][All Lists]
Advanced

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

Re: How to get multiple text spanners at the same height?


From: David Nalesnik
Subject: Re: How to get multiple text spanners at the same height?
Date: Sun, 12 May 2013 11:50:20 -0500

Hi Peter,


On Sun, May 12, 2013 at 8:45 AM, Peter Toye <address@hidden> 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
}


reply via email to

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