On Wed, Jul 15, 2026 at 6:17 AM Erik Appeldoorn <[email protected]>
wrote:

> I wanted to add a 'Cresc. molto' within the \Dynamics between  two piano
> hands. Using a \Markup within the piano would show it uncentered and out of
> whack.
> I tried
>
> cresMol = \tweak DynamicText.self-alignment-X #LEFT
> #(make-dynamic-script
>   (markup #:normal-text #:italic "Cresc. molto" ))
>
> Which looks ok, but showed an error: unbounded AbsoluteDynamicEvent
>
> And I also needed to add a \Whiteout, because it crosses a barline.
> \Whiteout can't be done within a dynamic-script.
>
> Then made this:
>
> cresMol = {
>       \once \tweak DynamicText.text \markup { \whiteout \pad-markup #0.3
> \normal-text \italic "Cresc. molto" }
>       \once \tweak DynamicText.self-alignment-X #0
>       \once \tweak DynamicText.layer #2
>       \once \tweak DynamicText.whiteout ##t
>       \p
> }
>
> Which looks ok when used, but still raises an unbounded AbsoluteDynamicEvent
> error.
> So I could just ignore the error, because the result is just fine. But
> rather have a proper solution.
>
> invoked like:   s\p s4\cresMol |  s2. |
>
> it looks like this. How could I solve the error?
>

You should always include an MWE (minimum working example) with your
question.  See https://lilypond.org/tiny-examples.html

I don't have an answer to your specific question, but I have two
alternatives.  The first is if you actually want a crescendo event to
happen, and the second is if just markup will be enough:

%%%
\version "2.26.0"

crescMoltoMarkup =
  \markup \large \italic \whiteout \pad-markup #0.25 "Cresc. molto"
crescMolto =
  #(make-music 'CrescendoEvent 'span-direction START 'span-type 'text
               'span-text crescMoltoMarkup)

{
  \time 3/4
  c''2\p 4\crescMolto | 2.\! | 2. | % acts like an actual crescendo
  c''2\p 4-\crescMoltoMarkup | 2. | % just markup
}
%%%

--
Knute Snortum

Reply via email to