|
From: | Gregor Smith |
Subject: | Re: Vertical alignment of custom dynamics |
Date: | Tue, 8 Aug 2017 19:57:20 +0100 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |