lilypond-user
[Top][All Lists]
Advanced

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

Re: Alignment problem


From: Manuela Gößnitzer
Subject: Re: Alignment problem
Date: Mon, 7 Aug 2017 13:40:08 +0200

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 <address@hidden>:
textLengthOn ?

--
Phil Holmes
 
 
----- Original Message -----
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
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

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