lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vertical spacing of rests


From: Klaus Blum
Subject: Re: vertical spacing of rests
Date: Sun, 23 Aug 2015 06:53:52 -0700 (MST)

Simon Albrecht-2 wrote
> This will move the Dot_column_engraver from Staff to Voice level and 
> might fix the problem.

Good idea, but you should consider that this will affect dotted notes as
well:

%----------------------------------------
\version "2.19.25"

centerRests = {
  \override Rest.staff-position = #0
}

\score {
  \new Staff <<
    \new Voice
    \relative c'' {
      \voiceOne
      \centerRests
      r  c  r  d | r2. e4
      d2. e4
    }
    \new Voice
    \relative c'' {
      \voiceTwo
      \centerRests
      r4 a8 a8 r4 b8 b8 | r2. c4
      c2. a4
    }
  >>
}

\score {
  \new Staff <<
    \new Voice
    \relative c'' {
      \voiceOne
      \centerRests
      r  c  r  d | r2. e4
      d2. e4
    }
    \new Voice
    \relative c'' {
      \voiceTwo
      \centerRests
      r4 a8 a8 r4 b8 b8 | r2. c4
      c2. a4
    }
  >>
  \layout {
    \context {
      \Staff
      \remove "Dot_column_engraver"
    }
    \context {
      \Voice
      \consists "Dot_column_engraver"
    }
  }
}
%----------------------------------------

So, it should at least be used with care.

Cheers, 
Klaus




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/vertical-spacing-of-rests-tp179947p179979.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]