[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: more than one TextSpanner
From: |
Mats Bengtsson |
Subject: |
Re: more than one TextSpanner |
Date: |
Thu, 11 Jan 2007 16:37:10 +0100 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20061206) |
It seems that you can not have more than a single simultaneous text
spanner in the same voice. However, your attempt to place the inner
text spanner in a separate voice should work well. You just have to note
that any setting done with
\once \override
will only apply to the next note, so you have to add these lines just before
the e'\startTextSpan. Since the Voice context is temporary anyway, you
could also simply remove the \once. Here's one version of your code that
works
\version "2.10.0"
\transpose c c' {
\textSpannerDown
\once \override TextSpanner #'padding = #1
\override TextSpanner #'edge-text = #'("Pizzicatto " . "")
d8[\startTextSpan fis b d']
\new Voice {
\textSpannerUp
a8[ cis'
\once \override TextSpanner #'edge-text = #'("II " . "")
\once \override TextSpanner #'direction = #1
\once \override TextSpanner #'style = #'line
\once \override TextSpanner #'edge-height = #'(0 . 0.5)
\once \override TextSpanner #'padding = #1.5
\once \override TextSpanner #'dash-fraction = #'()
e'\startTextSpan a']\stopTextSpan
}
d8[ fis b d']\stopTextSpan
\stopTextSpan
}
/Mats
Tiago Morin wrote:
Hi
I'm trying to place two textspanner over a voice. one of them down all over the
melody (pizzicatto) and another one temporarily for barre indication.
something like:
\textSpannerDown
\once \override TextSpanner #'padding = #1
\override TextSpanner #'edge-text = #'("Pizzicatto " . "")
d8[\startTextSpan fis b d']
{
\textSpannerUp
\once \override TextSpanner #'edge-text = #'("II " . "")
\once \override TextSpanner #'direction = #1
\once \override TextSpanner #'style = #'line
\once \override TextSpanner #'edge-height = #'(0 . 0.5)
\once \override TextSpanner #'padding = #1.5
\once \override TextSpanner #'dash-fraction = #'()
a8[ cis' e'\startTextSpan a']\stopTextSpan
}
d8[ fis b d']\stopTextSpan
\stopTextSpan
I tried also to put the new spanner in a voice <<{ %spannerhere% }\\{}>> but the
spanner does not get the TextSpanner settings.
Thank's for your help.
Tiago Morin
_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================