Dear all,

is it possible to align only groups of centered Dynamics vertically?
I'm trying to find a viable solution for centering Dynamics, which is independent of line breaking.

I tried following:

- centering single DynamicTexts via "staff-affinity = #CENTER"

- creating multiple independent Dynamics contexts

- interrupting DynamicLineSpanner via \stopStaff \startStaff


Y-offsets in the Dynamics context are working well, but only if line breaking doesn't change.

Yours,
musicus
\version "2.19.22"

\header {
  tagline = ##f
}

\paper {
  page-breaking = #ly:one-line-breaking
  paper-height = 80
}

\new PianoStaff {
  <<
    \new Staff \relative c' {
     f f f f
     e e e e
     e e e e
     e, e e e 
     a, a a a
    }
    \new Dynamics {
      s2.\< s4\f
      s2.\< s4\f
      s2.\< s4\f
      s2.\< s4\f
      s2.\< s4\f
    }
    \new Staff \relative c'' {
      \clef bass
      a a a a 
      f f f f 
      d, d d d 
      d d d d 
      d d d d
    }
  >>
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to