Re: outside-staff-priority for markups attached to <>

2014-06-26 Thread Richard Shann
Oh, thank you - that is much neater syntax anyway.

Richard

On Thu, 2014-06-26 at 17:42 +0100, Mark Knoop wrote:
> At 17:26 on 26 Jun 2014, Richard Shann wrote:
> >When I generate text to appear above some music using the <>^\markup
> >"mytext" syntax, I don't seem to be able to control the
> >outside-staff-priority. In this example despite the second bit of
> >markup having a lower outside-staff-priority it appears above the
> >first bit.
> >
> >\version "2.18.0"
> >\score {
> > {  \once \override TextScript.outside-staff-priority = #1000  <>
> > ^\markup "Above the next text please" \once \override
> > TextScript.outside-staff-priority = #0  a'4^"below please" }
> >}
> >
> >
> >Can anyone suggest why this is happening and if there is a solution
> >that doesn't involve using a different sort of syntax for the markup,
> >(i.e. not involving the <> trick)? (The final target of all this is
> >scores with markup containing encapsulated postscript to create old
> >French clavecin ornaments which have to have a low
> >outside-staff-priority despite being textScript).
> 
> Since both events happen at the same moment in time, you have to use
> tweak.
> 
> \version "2.18.0"
> \score {
>  {
> <>-\tweak outside-staff-priority #1000
> ^\markup "Above the next text please"
> a'4-\tweak outside-staff-priority #0 ^"below please"
>  }
> }
> 
> --
> Mark Knoop



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: outside-staff-priority for markups attached to <>

2014-06-26 Thread Mark Knoop
At 17:26 on 26 Jun 2014, Richard Shann wrote:
>When I generate text to appear above some music using the <>^\markup
>"mytext" syntax, I don't seem to be able to control the
>outside-staff-priority. In this example despite the second bit of
>markup having a lower outside-staff-priority it appears above the
>first bit.
>
>\version "2.18.0"
>\score {
> {  \once \override TextScript.outside-staff-priority = #1000  <>
> ^\markup "Above the next text please" \once \override
> TextScript.outside-staff-priority = #0  a'4^"below please" }
>}
>
>
>Can anyone suggest why this is happening and if there is a solution
>that doesn't involve using a different sort of syntax for the markup,
>(i.e. not involving the <> trick)? (The final target of all this is
>scores with markup containing encapsulated postscript to create old
>French clavecin ornaments which have to have a low
>outside-staff-priority despite being textScript).

Since both events happen at the same moment in time, you have to use
tweak.

\version "2.18.0"
\score {
 {
<>-\tweak outside-staff-priority #1000
^\markup "Above the next text please"
a'4-\tweak outside-staff-priority #0 ^"below please"
 }
}

--
Mark Knoop

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user