Hi Werner,

> Is there a way to make the second staff behave like the first one,
> i.e., to tell LilyPond that `f`, `\>`, and `p'` form a group and
> should be placed into the same `DynamicLineSpanner` object?

Definitely hacky way:
(n.b. \layout block included only to exaggerate visual effect)

%%%  SNIPPET BEGINS
\version "2.25.24"

\layout {
  line-width = 4\in
  ragged-right = ##f
}

{
 f'1\f\> | f'1\p
}

{
 \after 4 { \once \hideNotes f'2.\> } f'1\f | f'1\p
}
%%%  SNIPPET ENDS

I hope someone else has a better way! :)
— Kieren

Reply via email to