lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \textLengthOn relative to bar lines instead of following note


From: Thomas Morley
Subject: Re: \textLengthOn relative to bar lines instead of following note
Date: Tue, 24 Apr 2018 23:48:15 +0200

2018-04-24 17:09 GMT+02:00 Kieren MacMillan <address@hidden>:
> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]