lilypond-user
[Top][All Lists]
Advanced

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

text spanning


From: Hugh Myers
Subject: text spanning
Date: Fri, 27 Nov 2009 00:17:57 -0700

In the following:

\version "2.13.7"

chord = < e b gis e b e, >
upper = {
  \tempo 4=90
  \chord \chord \chord
  \repeat volta 2 {
    \tempo 4=200
    b c d
    d c b
    c a b
    \acciaccatura d8 \voiceOne c4 b a
    b a g
    a g f
  }
  \alternative {
    { r4 \times 2/3 { gis8 \startTextSpan b e } e,4 \times 2/3 { gis8
b e } e,2 }
    {
      \repeat volta 2 {
        \bar ":|.|:"
        { e8 [e'] gis, [e'] b [e] }
        e,8 [e'] gis, [e'] b [e]
        a,8 [e'] c [e] b [e]
        a,8 [e'] g, [e'] f, [e']
      }
    }
  }
  e,8 [e'] gis, [e'] b [e]
  d8 [e] c [e] b [e]
  c8 [e] a, [e'] b [e]
  c8 [e] b [e] a, [e']
  b8 [e] a, [e'] g, [e']
  a,8 [e'] g, [e'] f, [e']
  e,4 gis b
  \stopTextSpan
  < e b gis e b e, >2.
}

lower = {
  s2.
  <gis, d e, >2.
  e,2.
  a2.
  a2.
  g2.
  f2.
  { e2.~e2. }
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
}

ringer = {
  \textSpannerDown
  \override TextSpanner #'(bound-details left text) = "let ring "
}

{
  \time 3/4
  \set Score.barNumberVisibility = #all-bar-numbers-visible
  \bar ""
  \set Score.voltaSpannerDuration = #(ly:make-moment 3 4)
  <<
    \new Staff \relative c'' {
      <<
        \new Voice = "1" { \ringer \voiceOne \upper }
        \new Voice = "2" { \voiceTwo \lower }
      >>
    }
    \new TabStaff \relative c' {
      <<
        \new TabVoice = "t1" { \voiceOne \upper }
        \new TabVoice = "t2" { \voiceTwo \lower }
      >>
    }
  >>
}

the spanning text in bar 14 does not align with the first note of the
bar as I had expected. Is there a way to control this?

--hsm




reply via email to

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