Re: Controlling markup vertical position
Hello folks, Thanks for your help. It turns out I had mistaken \markLengthOn for \textLengthOn… -\tweak self-alignment-X #0 % move horizontally to the left works but is not adequate in my actual score, since there are bars to the left. So the good way for me to go is: \once\textLengthOn each time the problem arises. Problem solved! JM > Le 16 nov. 2015 à 22:44, Simon Albrechta écrit : > > On 16.11.2015 08:08, Menu Jacques wrote: >> Hello, >> >> As it turns out, using \tempo solves the issue: > > Well, it depends on what you’re typesetting there, but a \tempo indication > will always move to the topmost staff, so this is at least very fragile. > But how about: > %% > \version "2.19.30" > > \relative f { > \clef "bass" \key f \major \time 4/4 > g,2 \f > -\tweak self-alignment-X #0 % move horizontally to the left > ^"Bassi" > des''4 \p ^"Vcl." ( c4 ) | % 18 > } > % > That’s closer to what the artisanal engraver did, at least for the "Bassi". > > HTH, Simon > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Controlling markup vertical position
Hello, As it turns out, using \tempo solves the issue: Cello = \relative f { \clef "bass" \key f \major \time 4/4 \tempo "Bassi" g,2 \f \tempo "Vcl." des''4 \p ( c4 ) | % 18 } \relative { \Cello } JM > Le 15 nov. 2015 à 07:33, Menu Jacquesa écrit : > > Hello folks, > > I’ve tried to obtain the following from Mozart: > > > > with: > > \version "2.19.30" > > Cello = \relative f { > \clef "bass" \key f \major \time 4/4 > g,2 \f > -\tweak Y-offset #ly:self-alignment-interface::y-aligned-on-self > -\tweak self-alignment-Y #2 % move vertically down > ^\markup{"Bassi"} > des''4 \p ^"Vcl." ( c4 ) | % 18 > } > > \relative { > \Cello > } > > but I get Bassi too high and the first quater too much on the left (the \p > below the staff is OK for me): > > > Thanks for your help! > > JM > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Controlling markup vertical position
Hi JM, This is a downside, but in general I find it can be managed pretty well. So although the use of extra-offset may not be totally philosophically sound and pure, it is quite pragmatic. Andrew On 16/11/2015, 20:53, "Menu Jacques"wrote: > >Didnt’ think of it, thanks, but then you’re on your own to avoid collisions, >whereas \tempo takes care of that… > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Controlling markup vertical position
Hi Andrew, > Le 16 nov. 2015 à 13:50, Andrew Bernarda écrit : > > Hi JM, > > Would using \textLengthOn do what you want? Excellent, thanks, that does it! I thought I had tried it, though… not that nice to get old! JM > > Cello = \relative f { > \clef "bass" \key f \major \time 4/4 > \textLengthOn > g,2 \f > ^\markup{"Contrabassi"} > des''4 \p ^"Vcl." ( c4 ) | % 18 > } > > \relative { > \Cello > } > > > > Andrew > > > > > > > > > On 16/11/2015, 22:41, "Menu Jacques" wrote: > >> Problem is I don’t have a way yet to perform a « dilatation » of the bar to >> cope with larger strings such as Contrabassi: > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Controlling markup vertical position
Hello Andrew, Didnt’ think of it, thanks, but then you’re on your own to avoid collisions, whereas \tempo takes care of that… JM > Le 16 nov. 2015 à 10:17, Andrew Bernarda écrit : > > Hi JM > > You could try using extra-offset: > > \version "2.19.30" > > Cello = \relative f { > \clef "bass" \key f \major \time 4/4 > \once \override TextScript.extra-offset = #'(-3 . -3) > g,2 \f > ^\markup{"Bassi"} > des''4 \p ^"Vcl." ( c4 ) | % 18 > } > > \relative { > \Cello > } > > > Andrew > > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Controlling markup vertical position
Hello Andrew, Problem is I don’t have a way yet to perform a « dilatation » of the bar to cope with larger strings such as Contrabassi: Cello = \relative f { \clef "bass" \key f \major \time 4/4 \tempo "Contrabassi" g,2 \f \tempo "Vcl." des''4 \p ( c4 ) | % 18 } \relative { \Cello } Cello = \relative f { \clef "bass" \key f \major \time 4/4 \once \override TextScript.extra-offset = #'(-3 . -3) g,2 \f ^\markup{"Contrabassi"} des''4 \p ^"Vcl." ( c4 ) | % 18 } \relative { \Cello } > Le 16 nov. 2015 à 12:25, Andrew Bernarda écrit : > > Hi JM, > > This is a downside, but in general I find it can be managed pretty well. So > although the use of extra-offset may not be totally philosophically sound and > pure, it is quite pragmatic. > > Andrew > > > > > > On 16/11/2015, 20:53, "Menu Jacques" wrote: > >> >> Didnt’ think of it, thanks, but then you’re on your own to avoid collisions, >> whereas \tempo takes care of that… >> > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Controlling markup vertical position
Hi JM, Would using \textLengthOn do what you want? Cello = \relative f { \clef "bass" \key f \major \time 4/4 \textLengthOn g,2 \f ^\markup{"Contrabassi"} des''4 \p ^"Vcl." ( c4 ) | % 18 } \relative { \Cello } Andrew On 16/11/2015, 22:41, "Menu Jacques"wrote: >Problem is I don’t have a way yet to perform a « dilatation » of the bar to >cope with larger strings such as Contrabassi: ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Controlling markup vertical position
Hi JM You could try using extra-offset: \version "2.19.30" Cello = \relative f { \clef "bass" \key f \major \time 4/4 \once \override TextScript.extra-offset = #'(-3 . -3) g,2 \f ^\markup{"Bassi"} des''4 \p ^"Vcl." ( c4 ) | % 18 } \relative { \Cello } Andrew ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Controlling markup vertical position
On 16.11.2015 08:08, Menu Jacques wrote: Hello, As it turns out, using \tempo solves the issue: Well, it depends on what you’re typesetting there, but a \tempo indication will always move to the topmost staff, so this is at least very fragile. But how about: %% \version "2.19.30" \relative f { \clef "bass" \key f \major \time 4/4 g,2 \f -\tweak self-alignment-X #0 % move horizontally to the left ^"Bassi" des''4 \p ^"Vcl." ( c4 ) | % 18 } % That’s closer to what the artisanal engraver did, at least for the "Bassi". HTH, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Controlling markup vertical position
Hi Jacques, > As it turns out, using \tempo solves the issue: OH, PLEASE DON’T DO THIS! Don’t use a MetronomeMark (which is the grob generated by \tempo) where a TextScript (which is the grob generated by \markup) is appropriate. This *may* appear to “solve the issue”, but really it doesn’t, and it certainly adds a whole bunch of new issues — immediately obvious or eventually to surface — which needn’t ever be encountered if you simply use the correct grobs and tweaks to begin with. Regards, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Controlling markup vertical position
Hi Jacques, > I get Bassi too high and the first quater too much on the left If you want to duplicate the original, you need to [almost] right-align the “Bassi”: SNIPPET BEGINS \version "2.19.30" Cello = \relative f { \clef "bass" \key f \major \time 4/4 s1 g,2\f-\tweak self-alignment-X #0.1 -\tweak padding #1 ^\markup{ "Bassi" } << { \voiceTwo bes2\rest } \new Voice { \voiceOne \dynamicUp des'4-\tweak self-alignment-X #RIGHT \p( ^"Vcl." c4) } >> \oneVoice | % 18 } \relative { \Cello } SNIPPET ENDS I’ve also done a few other tweaks and code adjustments in this snippet, to get you closer to [how I might code] the original. Hope this helps! Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Controlling markup vertical position
Hello folks, I’ve tried to obtain the following from Mozart: with: \version "2.19.30" Cello = \relative f { \clef "bass" \key f \major \time 4/4 g,2 \f -\tweak Y-offset #ly:self-alignment-interface::y-aligned-on-self -\tweak self-alignment-Y #2 % move vertically down ^\markup{"Bassi"} des''4 \p ^"Vcl." ( c4 ) | % 18 } \relative { \Cello } but I get Bassi too high and the first quater too much on the left (the \p below the staff is OK for me): Thanks for your help! JM ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user