2018-04-24 17:09 GMT+02:00 Kieren MacMillan <kieren_macmil...@sympatico.ca>: > Hi all, > >>> It would be nice to be able to arbitrarily set the duration of the moment >>> that would (if necessary) be stretched. >> Ah, I follow now. Interesting! Thanks Kieren! > > Here’s a hack that shows the desired outcome [in the first measure]: > > \version "2.18.2" > > { > \partial 2 > << > { \oneVoice a'4^\markup { Unprefixed }( a'4) } > \\ > { \once \hide Rest \tweak extra-spacing-width #'(10 . 10) r2 } > >> > a'4( a'4^\markup { Prefixed } a'4) > } > > Cheers, > Kieren.
Another hack: \version "2.18.2" pushRight = #(define-event-function (parser location amount)(number?) #{ \tweak text \markup \with-dimensions #(cons 0 amount) #'(0 . 0) "" -\rightHandFinger #5 #}) { \partial 2 a'4^"Unprefixed" a'\pushRight 7 | a' a'^"Prefixed" a' a' } Cheers, Harm _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user