Am Sonntag, 10. Februar 2008 schrieben Sie: > Hi Reinhold, > > > What I'm looking for is to align the pp of "sempre pp" with the > > note it is attached to. > > \once \override DynamicText #'X-offset = #...
Oops, my bad. I should have tried that and not discarded that thought without further investigation. I had a knot in my brain and thought that simply shifting would break with different staff sizes, but of course the shift is relativ to the staff size, too, so it works independent of the particular staff size... Now, I'm only looking for a way to set this property directly inside my \sempp function, so that one does not need to add the \once\override manually whenever one uses \sempp. I could have used something like this already in lots of places, where I need to apply the same adjustment to some markup/dynamics, but can't set it globally. Is there a way to do this? Btw, Trevor's solution almost works in this regard, with the only problem that another dynamic text on the next note is shifted down, because the \hspace is still in effect... (see attached file) Cheers, Reinhold -- ------------------------------------------------------------------ Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
\version "2.11.36" #(ly:set-option 'point-and-click #f) #(set-global-staff-size 14.5) \layout{ ragged-right = ##t } sempp = #(make-dynamic-script (markup #:line( #:normal-text #:italic "sempre" #:dynamic "pp"))) semppI = #( make-dynamic-script ( markup #:line ( #:normal-text #:italic "sempre" #:dynamic "pp" #:hspace 7.1 ) ) ) \context StaffGroup << \context Staff="s1" << \set Staff.instrumentName = "Normal" \relative c'' { \key es \major c4\pp c\p c c | c c c c} >> \context Staff="s2" << \set Staff.instrumentName = \markup\column{"Kieren's" "solution"} \relative c'' { \key es \major \once \override DynamicText #'X-offset = #-9.2 c4\sempp c\p c c | c c c c} >> \context Staff="s3" << \set Staff.instrumentName = \markup\column{"Trevor's" "solution"} \relative c'' { \key es \major c4\semppI c\p c c | c c c c} >> >>
semprepp_alignment.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user