textspan

View: New views
8 Messages — Rating Filter:   Alert me  

textspan

by Erik Appeldoorn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I have defined the following

\override TextSpanner #'(bound-details left text) = "Ral."

 

Within a \time 3/4 I have the following notes:

d2\startTextSpan d4 | cis a2\stopTextSpan |

 

The Ral. now stops directly above the a2. Other voices above it have more notes there, so the Ral. stops far more to the right within the same bar.

 I want the Ral. to align right up to the last notes of the voices above for this voice only. So all Rals stop at the same vertical.

 

Hou je goed / Keep well,

 

Erik

 


_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: textspan

by Frédéric Bron :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It is funny. I was quite sure to have the solution but I do not
understand why what I propose does not work: you have to separate
notes and TextSpan in parallel music expressions.
Can somebody tell why this does not work?

Frédéric

\version "2.12.2"

\new Score <<
  \new Staff \relative c' { \time 3/4
    \override TextSpanner #'(bound-details left text) = "Ral."
    << { d2 d4 | cis a2 } { s2.\startTextSpan s2 s8 s8\stopTextSpan } >>
  }
  \new Staff \relative c' { \time 3/4
    \override TextSpanner #'(bound-details left text) = "Ral."
    << { \repeat unfold 12 d8 } { s2.\startTextSpan s2 s8 s8\stopTextSpan } >>
  }
>>


_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: textspan

by Kieren MacMillan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Frédéric,

> It is funny. I was quite sure to have the solution but I do not
> understand why what I propose does not work: you have to separate
> notes and TextSpan in parallel music expressions.
> Can somebody tell why this does not work?

Because your construct doesn't have two Voice constructs, only two  
expressions in the same Voice.

Instead, try

tsRal = \override TextSpanner #'(bound-details left text) = "Ral."

\new Score <<
   \new Staff \relative c' { \time 3/4
     << { d2 d4 | cis a2 } \new Voice { \tsRal s2.\startTextSpan s2  
s8 s8\stopTextSpan } >>
   }
   \new Staff \relative c' { \time 3/4
     << { \repeat unfold 12 d8 } \new Voice { \tsRal s2.
\startTextSpan s2 s8 s8\stopTextSpan } >>
   }
 >>

Hope this helps!
Kieren.

_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: textspan

by Frédéric Bron :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Because your construct doesn't have two Voice constructs, only two
> expressions in the same Voice.

Works fine, thanks! But I still do not understand why it does not work
with only one voice (i.e. without \new Voice).

Frédéric


_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: textspan

by Kieren MacMillan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Frédéric,

> Works fine, thanks! But I still do not understand why it does not work
> with only one voice (i.e. without \new Voice).

That's definitely beyond my understanding of Lilypond internals —  
perhaps someone else (Han-Wen? Mats? Nicolas? Joe?) knows the  
technical reason(s).

Cheers,
Kieren.

_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user

RE: textspan

by Erik Appeldoorn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I still must be blind, but haven't got the solution to work.
I have tried:

        << { d2 d4 | cis a2} \new Voice { \tsRal s2.\startTextSpan s4 | s
s2\stopTextSpan } >> |

and tried:

        { d2 d4 | cis a2} \new Voice { \tsRal s2.\startTextSpan s4 | s
s2\stopTextSpan } |

Then I tried:

<< { \tsRal s2.\startTextSpan s4 | s s2\stopTextSpan } \\
        { d2 d4 | cis a2} >>

And nothing seems to work. So I think it must be me, misunderstanding
something

Erik


> -----Original Message-----
> From: Kieren MacMillan [mailto:kieren_macmillan@...]
> Sent: zondag 1 november 2009 13:16
> To: Frédéric Bron
> Cc: Erik Appeldoorn; lilypond-user@...
> Subject: Re: textspan
>
> Hi Frédéric,
>
> > It is funny. I was quite sure to have the solution but I do not
> > understand why what I propose does not work: you have to separate
> > notes and TextSpan in parallel music expressions.
> > Can somebody tell why this does not work?
>
> Because your construct doesn't have two Voice constructs, only two
> expressions in the same Voice.
>
> Instead, try
>
> tsRal = \override TextSpanner #'(bound-details left text) = "Ral."
>
> \new Score <<
>    \new Staff \relative c' { \time 3/4
>      << { d2 d4 | cis a2 } \new Voice { \tsRal s2.\startTextSpan s2
> s8 s8\stopTextSpan } >>
>    }
>    \new Staff \relative c' { \time 3/4
>      << { \repeat unfold 12 d8 } \new Voice { \tsRal s2.
> \startTextSpan s2 s8 s8\stopTextSpan } >>
>    }
>  >>
>
> Hope this helps!
> Kieren.=



_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: textspan

by Frédéric Bron :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I still must be blind, but haven't got the solution to work.

You did not look in detail at my proposition: replace s
s2\stopTextSpan by s2 s8 s8\stopTextSpan

Frédéric


_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user

RE: textspan

by Erik Appeldoorn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Frédérick,

As I said: I must have been blind (Or just plain stubborn)
Either way, problem corrected now. Thanks for pointing it out.

Erik

> -----Original Message-----
> From: Frédéric Bron [mailto:frederic.bron@...]
> Sent: maandag 2 november 2009 19:36
> To: Erik Appeldoorn
> Cc: Kieren MacMillan; lilypond-user@...
> Subject: Re: textspan
>
> > I still must be blind, but haven't got the solution to work.
>
> You did not look in detail at my proposition: replace s
> s2\stopTextSpan by s2 s8 s8\stopTextSpan
>
> Frédéric



_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user