Re: How to do TextSpanner + markup + override vertical placement all at the same time?
> Le 5 févr. 2022 à 17:34, Kenneth Wolcott a écrit : > > Hi Kevin; > > I commented that line out because I get an error when engraving it. > > GNU LilyPond 2.22.1 (running Guile 2.2) > Processing `Jeanie_With_The_Light_Brown_Hair.ly' > Parsing... > Jeanie_With_The_Light_Brown_Hair.ly:56:4: error: syntax error, > unexpected MUSIC_FUNCTION, expecting UNSIGNED or NUMBER_IDENTIFIER or > REAL > - > \tweak outside-staff-priority #605 > Jeanie_With_The_Light_Brown_Hair.ly:57:5: error: wrong type for > argument 3. Expecting music, found (markup #:line (#:bold (#:fontsize > 4 "a tempo"))) > >\markup { \bold \fontsize #4 "a tempo" } That sounds like you have -\tweak outside-staff-priority #605 \markup { ... } instead of \tweak outside-staff-priority #605 -\markup { ... } Jean > Jeanie_With_The_Light_Brown_Hair.ly:173:3: error: errors found, > ignoring music expression > > \new PianoStaff \with { instrumentName = "Piano" } > Jeanie_With_The_Light_Brown_Hair.ly:182:3: error: errors found, > ignoring music expression > > << > fatal error: failed files: "Jeanie_With_The_Light_Brown_Hair.ly" > >> On Sat, Feb 5, 2022 at 2:42 AM Kevin Barry wrote: >> >> 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 >> >> 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 >>> 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 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'' 4 \) s| % m25 \bar "|." >
Re: How to do TextSpanner + markup + override vertical placement all at the same time?
> Le 5 févr. 2022 à 11:42, Kevin Barry 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 >> 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 >>> 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'' 4 \) s| % m25 >>> \bar "|." >>> >
Re: How to do TextSpanner + markup + override vertical placement all at the same time?
Ah! Thank you, Kevin! On Sat, Feb 5, 2022 at 8:58 AM Kevin Barry wrote: > > Hi Kenneth, > > That line was in the file that you sent. I had to comment it out as > well. It's not related to my suggestion. > > Kevin > > On Sat, 5 Feb 2022 at 16:34, Kenneth Wolcott wrote: > > > > Hi Kevin; > > > > I commented that line out because I get an error when engraving it. > > > > GNU LilyPond 2.22.1 (running Guile 2.2) > > Processing `Jeanie_With_The_Light_Brown_Hair.ly' > > Parsing... > > Jeanie_With_The_Light_Brown_Hair.ly:56:4: error: syntax error, > > unexpected MUSIC_FUNCTION, expecting UNSIGNED or NUMBER_IDENTIFIER or > > REAL > > - > >\tweak outside-staff-priority #605 > > Jeanie_With_The_Light_Brown_Hair.ly:57:5: error: wrong type for > > argument 3. Expecting music, found (markup #:line (#:bold (#:fontsize > > 4 "a tempo"))) > > > > \markup { \bold \fontsize #4 "a tempo" } > > Jeanie_With_The_Light_Brown_Hair.ly:173:3: error: errors found, > > ignoring music expression > > > > \new PianoStaff \with { instrumentName = "Piano" } > > Jeanie_With_The_Light_Brown_Hair.ly:182:3: error: errors found, > > ignoring music expression > > > > << > > fatal error: failed files: "Jeanie_With_The_Light_Brown_Hair.ly" > > > > On Sat, Feb 5, 2022 at 2:42 AM Kevin Barry wrote: > > > > > > 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 > > > > > > 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 > > > 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 > > > > 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'' 4 \) s| > > > > > % m25 > > > > > \bar "|." > > > > >
Re: How to do TextSpanner + markup + override vertical placement all at the same time?
Hi Kenneth, That line was in the file that you sent. I had to comment it out as well. It's not related to my suggestion. Kevin On Sat, 5 Feb 2022 at 16:34, Kenneth Wolcott wrote: > > Hi Kevin; > > I commented that line out because I get an error when engraving it. > > GNU LilyPond 2.22.1 (running Guile 2.2) > Processing `Jeanie_With_The_Light_Brown_Hair.ly' > Parsing... > Jeanie_With_The_Light_Brown_Hair.ly:56:4: error: syntax error, > unexpected MUSIC_FUNCTION, expecting UNSIGNED or NUMBER_IDENTIFIER or > REAL > - >\tweak outside-staff-priority #605 > Jeanie_With_The_Light_Brown_Hair.ly:57:5: error: wrong type for > argument 3. Expecting music, found (markup #:line (#:bold (#:fontsize > 4 "a tempo"))) > > \markup { \bold \fontsize #4 "a tempo" } > Jeanie_With_The_Light_Brown_Hair.ly:173:3: error: errors found, > ignoring music expression > > \new PianoStaff \with { instrumentName = "Piano" } > Jeanie_With_The_Light_Brown_Hair.ly:182:3: error: errors found, > ignoring music expression > > << > fatal error: failed files: "Jeanie_With_The_Light_Brown_Hair.ly" > > On Sat, Feb 5, 2022 at 2:42 AM Kevin Barry wrote: > > > > 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 > > > > 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 > > 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 > > > 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'' 4 \) s| % > > > > m25 > > > > \bar "|." > > > >
Re: How to do TextSpanner + markup + override vertical placement all at the same time?
Hi Kevin; I commented that line out because I get an error when engraving it. GNU LilyPond 2.22.1 (running Guile 2.2) Processing `Jeanie_With_The_Light_Brown_Hair.ly' Parsing... Jeanie_With_The_Light_Brown_Hair.ly:56:4: error: syntax error, unexpected MUSIC_FUNCTION, expecting UNSIGNED or NUMBER_IDENTIFIER or REAL - \tweak outside-staff-priority #605 Jeanie_With_The_Light_Brown_Hair.ly:57:5: error: wrong type for argument 3. Expecting music, found (markup #:line (#:bold (#:fontsize 4 "a tempo"))) \markup { \bold \fontsize #4 "a tempo" } Jeanie_With_The_Light_Brown_Hair.ly:173:3: error: errors found, ignoring music expression \new PianoStaff \with { instrumentName = "Piano" } Jeanie_With_The_Light_Brown_Hair.ly:182:3: error: errors found, ignoring music expression << fatal error: failed files: "Jeanie_With_The_Light_Brown_Hair.ly" On Sat, Feb 5, 2022 at 2:42 AM Kevin Barry wrote: > > 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 > > 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 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 > > 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'' 4 \) s| % m25 > > > \bar "|." > > >
Re: How to do TextSpanner + markup + override vertical placement all at the same time?
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 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 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 > 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'' 4 \) s| % m25 > > \bar "|." > >
Re: How to do TextSpanner + markup + override vertical placement all at the same time?
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 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'' 4 \) s| % m25 > \bar "|." > Jeanie_With_The_Light_Brown_Hair.ly Description: Binary data