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 <mrtn...@gmail.com> 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
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to