Hello,

One thing that is bothering about the output I create with
Lilypond is that the staves have a variable interval. (See
attachment sample file.) This is caused by the presence/absence
of dynamics.

In a piece from Mutopia Project I noticed the sheet music in
the PDF file has the layout I like.
  http://www.mutopiaproject.org/cgibin/piece-info.cgi?id=651

When checking the .ly file it seems the following command
  \override VerticalAlignment #'forced-distance = #4.5
is used to achieve this. In v2.12.3, however, this property
has been removed (from searching the internet this apparently
happened in v2.11).

I find this varying height uncomfortable and prefer this
separation to be the same for all lines. How can I
force/tweak Lilypond to do this?

Many thanks in advance,
   Herre
\version "2.12.3"

\pointAndClickOff

global = {
  \key g \minor
  \time 4/4
}

\paper  {
    ragged-last-bottom = ##t
    ragged-last = ##t
    ragged-right = ##t
}


upper = \relative c' {
  \clef treble

  r8 c-1 e-2 g e c bes'-5 g-3
  \break
  r8 c,-1 e-2 g e c bes'-5 g-3
}

lower = \relative c {
  \clef bass
  <c, c'>1
  \break
  <c c'>1
}

dynamics = {
  s4\mf s s2 s1
}

pedal = {
  s1 s
}

\score {
  \new PianoStaff = "PianoStaff_pf" <<
    \new Staff = "Staff_pfUpper" << \global \upper >>
    \new Dynamics = "Dynamics_pf" \dynamics
    \new Staff = "Staff_pfLower" << \global \lower >>
    \new Dynamics = "pedal" \pedal
  >>

  \layout {
    % define Dynamics context
    \context {
      \type "Engraver_group"
      \name Dynamics
      \alias Voice
      \consists "Output_property_engraver"
      \consists "Piano_pedal_engraver"
      \consists "Script_engraver"
      \consists "New_dynamic_engraver"
      \consists "Dynamic_align_engraver"
      \consists "Text_engraver"
      \consists "Skip_event_swallow_translator"
      \consists "Axis_group_engraver"

      pedalSustainStrings = #'("Ped." "*Ped." "*")
      pedalUnaCordaStrings = #'("una corda" "" "tre corde")
      \override DynamicLineSpanner #'Y-offset = #0
      \override TextScript #'font-size = #2
      \override TextScript #'font-shape = #'italic
      \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
    }
    % modify PianoStaff context to accept Dynamics context
    \context {
      \PianoStaff
      \accepts Dynamics
    }
  }
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to