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.

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to