lilypond-user
[Top][All Lists]
Advanced

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

Re: How to do TextSpanner + markup + override vertical placement all at


From: Jean Abou Samra
Subject: Re: How to do TextSpanner + markup + override vertical placement all at the same time?
Date: Sat, 5 Feb 2022 18:49:26 +0100


> Le 5 févr. 2022 à 11:42, Kevin Barry <barrykp@gmail.com> a écrit :
> 
> Hi Kenneth,
> 
> I think you can fix the problem with the relative positioning by
> setting the 'outside-staff-priority, e.g.:
> 
> \tweak #'outside-staff-priority #0 \ottava 1


I think (cannot verify this weekend) that this is only going to work in 2.23 
thanks to \ottava having been converted to a stream event. In 2.22, try

\once \override Staff.OttavaSpanner.outside-staff-priority = 0
\ottava 1


Jean

> will cause the ottava marking to be put closer to the staff than the text 
> span.
> 
> Kevin
> 
>> On Sat, 5 Feb 2022 at 01:35, Kenneth Wolcott <kennethwolcott@gmail.com> 
>> wrote:
>> 
>> Hi;
>> 
>>  I figured out how to get the formatting of the "a tempo" and "rall."
>> merged with the text spanning; but I still can't seem to figure out
>> how to get the "a tempo" to be above the ottava marking.
>> 
>>  Updated screenshot attached.
>> 
>>  Attached full Lilypond code as well.
>> 
>> Thanks,
>> Ken
>> 
>>> On Fri, Feb 4, 2022 at 5:05 PM Kenneth Wolcott <kennethwolcott@gmail.com> 
>>> wrote:
>>> 
>>> Hi;
>>> 
>>>  I know how to generate a bold and large "rall." and "a tempo".
>>> 
>>>  I know how to get a text span.
>>> 
>>>  How to merge these two concepts?
>>> 
>>>  Also I need to put the "a tempo" above the ottava.
>>> 
>>>  I think I now how to do that in a more simple context, but I'm
>>> struggling here.
>>> 
>>>  I have attached two screenshots.
>>> 
>>>  The example is the music I'm trying to engrave from while the other
>>> screenshot is what I've asked Lilypond to do,
>>> 
>>> I have enclosed below an excerpt of my Lilypond code.
>>> 
>>> Thanks in advance for your help.
>>> 
>>> Ken Wolcott
>>> 
>>> %%%%%%%%%%%%%%%%
>>> \version "2.22.0"
>>> ...
>>>  \language "english"
>>> ...
>>> a_tempo = ^\markup { \bold "A tempo" }
>>> rall = ^\markup { \bold "rall." }
>>> rit = ^\markup { \bold "rit." }
>>> ...
>>> %\break
>>>  bf'4. \( g'8 af' g' f' ef'                             | % m18
>>>  \override TextSpanner.bound-details.left.text = "rall."
>>>  g'4 bf8 c'\startTextSpan ef'2 \)                       | % m19
>>>  f'8 \( g' ef''8. c''16 bf'8.\fermata c''16 ef'8. f'16  | % m20
>>>  g'4 g'8 f' ef'2\stopTextSpan \)                        | % m21
>>> %\break
>>>  \ottava 1
>>>    \transpose c c' {
>>>    \override TextSpanner.bound-details.left.text = "a tempo"
>>>    \grace { af'16\startTextSpan } g'8 \( f' g' bf' bf' g'' g''4 \)  | % m22
>>>    c''8 \( af'' ef'' f'' g''4\stopTextSpan \) r                     | % m23
>>>  }
>>>  \ottava 0
>>>  f''8\rall \( g'' ef''' c''' bf'' c'' ef'' f''                    | % m24
>>>  g''4 g''8 f'' <g' ef''>4 \) s                                    | % m25
>>>  \bar "|."
>>> %%%%%%%%%%%%%%%%%%%%
> 



reply via email to

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