lilypond-user
[Top][All Lists]
Advanced

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

Re: Vertical alignment of custom dynamics


From: Gregor Smith
Subject: Re: Vertical alignment of custom dynamics
Date: Tue, 8 Aug 2017 19:57:20 +0100

Thanks, that worked. Had to change the horizontal alignment but now I have exactly what I was looking for.

On 6 August 2017 at 00:46, Martin Neubauer <address@hidden> wrote:


On 06/08/2017 00:19, Gregor Smith wrote:
> \version "2.16.0"
>
> \include "common.ly"
>
> upper = \relative c'' {
>   \clef treble
>   \key c \major
>   \time 2/4
>   c2
>   \repeat volta 2 {
>     d | e
>   }
> }
>
>
> lower = \relative c' {
>   \clef bass
>   \key c \major
>   \time 2/4
>   c2
>   \repeat volta 2 {
>     d | e
>   }
> }
>
> mpf = \markup  { \dynamic { mp } "-" \dynamic { f } }
mpf = #(make-dynamic-script "mp - f")

or a little more elaborate:

mpf = #(make-dynamic-script
        (markup #:dynamic "mp"
          #:normal-text #:italic #:bold "-"
          #:dynamic "f"))
(The latter form isn't necessarily preferable in this instance, but
gives you an example how to achieve more fine-grained control over the
formatting if needed.)
>
> dynamics = {
>   s2\mp
>   \repeat volta 2 {
>     s2-\mpf | R2
>   }
> }
>
>
>
> \score {
>
>   \new PianoStaff <<
>     \new Staff = "upper" \upper
>     \new Dynamics = "dynamics" \dynamics
>     \new Staff = "lower" \lower
>   >>
> }
--
Ceci n'est pas une signature.


_______________________________________________
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]