2018-02-11 0:30 GMT+01:00 Kieren MacMillan <kieren_macmil...@sympatico.ca>:
> Hi Harm,
>
> Does the snippet below show expected behaviour from your custom \dynamic 
> function?
> I would have expected the \omit to affect both "dynamic texts"…
>
> Thanks,
> Kieren.
>
> %%%%  SNIPPET BEGINS
[...]

Hi Kieren,

in a nutshell the code works as this minimal:

{
  c'1
    -\tweak before-line-breaking
      #(lambda (grob)
        (ly:grob-set-property! grob 'stencil
          (grob-interpret-markup grob "ff")))
    -#(make-music 'AbsoluteDynamicEvent)
}

So, yes DynamicText is caused, but you can't nuke the stencil via
\omit (which would be stencil-override).
But you could do it later.

Applying

\override DynamicText.after-line-breaking =
  #(lambda (grob) (ly:grob-set-property! grob 'stencil '()))

will work, though.

Cheers,
  Harm

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

Reply via email to