lilypond-user
[Top][All Lists]
Advanced

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

Re: improving Janek's \dynamic function (for combo dynamics)


From: Thomas Morley
Subject: Re: improving Janek's \dynamic function (for combo dynamics)
Date: Tue, 12 Sep 2017 01:36:35 +0200

2017-09-12 1:23 GMT+02:00 Kieren MacMillan <address@hidden>:
> Hi Harm,
>
>> you could already use 'details.markup-commands
>> to add space to _both_ sides of a dynamic:
>
> um… Which version does this require? With 2.19.65, I get
>
>     error: syntax error, unexpected '='
>     \markup customize-dyn
>                           =

Ah, sorry.
The syntax needs next release. I'm on current master, i.e. 2.21.0.

Below should work:

\score {
  \new Staff {
        c''1\dynamicH ##t 1 "text before {ppppp} text after"
        c''1\dynamicH ##t 1 "text before {ppppp}"
        c''1\dynamicH ##t 1 "text before {ppppp}!"
  }
  \layout {
    \override DynamicText.details.markup-commands =
      #(cons
        (lambda (arg)
          (make-pad-x-markup 2
            (make-dynamic-markup arg)))
        make-italic-markup)
%% inserted to demonstrate a problem
    \override DynamicText.after-line-breaking =
      #(lambda (grob)
        (ly:grob-set-property! grob 'stencil
          (box-stencil
            (ly:grob-property grob 'stencil)
            0 0)))
    ragged-right = ##f
    indent = 0
  }
}

Cheers,
  Harm



reply via email to

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