A solution comes in mind but you have to assign dynamic and text to the
same note:
\version "2.19.48"
dynamictext =
#(define-event-function (text) (markup?)
(if (string? text)
(let* ((underscores-replaced
(string-map
(lambda (x) (if (eq? x #\_) #\space x))
text))
(split-text (string-split underscores-replaced #\space))
(formatted (map
(lambda (word)
(if (string-match "^[mrzfps]*$" word)
(markup #:dynamic word)
(markup #:normal-text #:italic word)))
split-text)))
#{
#(make-dynamic-script (make-line-markup formatted))
#})
;; user provided a full-blown markup, so we don't mess with it:
#{
#(make-dynamic-script (markup #:normal-text text))
#}))
\relative b, {
\key g \major
\clef "bass"
\time 3/4
d4\fermata \dynamictext
\markup {
\italic "Fine" \dynamic "p" }
g4
b4
}
HTH
Manuela
2017-08-07 9:41 GMT+02:00 Phil Holmes <[email protected]>:
> textLengthOn ?
>
> --
> Phil Holmes
>
>
>
> ----- Original Message -----
> *From:* Menu Jacques <[email protected]>
> *To:* Lilypond-User Mailing List <[email protected]>
> *Cc:* Menu Jacques <[email protected]>
> *Sent:* Monday, August 07, 2017 7:19 AM
> *Subject:* Alignment problem
>
> Hello folks,
>
> Can the « Fine » and « f » be on the same horizontal line while remaining
> attached to two differents notes, without using any separate dynamics voice?
>
> Thanks!
>
> JM
>
> \version "2.19.55"
>
> \relative b, {
> \key g \major
> \clef "bass"
> \time 3/4
>
> d4
> \fermata _\markup{\italic "Fine"}
> g4 \f
> b4
> }
>
>
>
> ------------------------------
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
> _______________________________________________
> lilypond-user mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user