Hello Simon, Thanks for your advice. In its simple form, i.e. by adding: _\markup { \italic {sempre 2} \musicglyph #"pedal.Ped" } , it works perfectly. The other method, as in the ME you gave, it did not work. But I got exactly what I needed. Thanks again.
Best regards, Robert On 22 Jan 2017, at 11:40 , Simon Albrecht <simon.albre...@mail.de> wrote: > On 22.01.2017 10:36, Robert Blackstone wrote: >> I am presently re-engraving a number of almost forgotten piano pieces. >> One of them has under the first bar of the LH staff the text: "/sempre 2 >> Ped/", Ped being the usual standard notation as generated by \sustainOn. >> >> Although the LilyPond documentation tells me somewhere that "Pedal >> indications may be placed in a Dynamics context, which aligns them on a >> horizontal line." this does obviously not imply that a markup-construction >> such as >> "\markup {\line {\concat \italic { più } { \dynamics f } }}" can be used in >> my case. >> >> What should I do here to align "/sempre 2/" with \sustainOn? > > You can of course use a markup construction. The ‘Ped’ symbol is available > through \markup { \musicglyph #"pedal.Ped" }, see > <http://lilypond.org/doc/v2.18/Documentation/notation/the-feta-font#pedal-glyphs> > and > <http://lilypond.org/doc/v2.18/Documentation/notation/lilypond-command-index> > for \musicglyph. > So you /should/ be able to just do this: > > %%%%%%%%%%%%%%%%%%%%%%% > \version "2.18.2" > > sustainBothMrkp = \markup { sempre 2 \musicglyph #"pedal.Ped" } > sustainBothOn = -\tweak text \sustainBothMrkp \sustainOn > > \new Staff { > c'1\sustainBothOn > c'1\sustainOff > } > %%%%%%%%%%%%%%%%%%%%%%% > > which would then work equally fine in Staff and Dynamics contexts. > > However, I get ‘warning: SustainPedal has empty extent and non-empty stencil’ > and \sustainBothOn isn’t printed, which I don’t know why. Anyone? > > Best, Simon _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user