lilypond-user
[Top][All Lists]
Advanced

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

Re: Staff Spacing


From: Kieren MacMillan
Subject: Re: Staff Spacing
Date: Wed, 15 Apr 2015 20:13:45 -0400

Hi Chris,

> I still have the problem in version 2.19.18.  I'm attaching another version
> of the example using line breaks instead of the edition-engraver commands.

You shouldn’t mix voltas into every variable like that.
I can only imagine that you’ve misplaced a beat somewhere, and Lily’s going 
crazy trying to cope.

Put all of your shared items into a single variable, and only make them 
simultaneous in the final score.
I’ve included, below, a start in that direction for you — it compiles without 
error (and I’m sure if you complete it according to the example, it will 
compile without error).

Hope this helps!
Kieren.
______________________

\version "2.19.18"
\language "english"

#(set-default-paper-size "letter")

Global = {
    \time 2/4
    \tempo 4 = 120
    \key g \major
  %%  sop
    \repeat volta 2 { s2*3 }
    \alternative { { s2 } { s2*2 } }
    s2*9
    \bar ".|:-||"
    \break
}

VerseOneUnison = {
  %%  volta
    g4 d8 g |
    b g a fs |
    a4 fs8 a |
  %%  alt. 1
    c8 b g4 |
  %%  alt. 2
    c8 b g4 ~ |
    g r8 b8 |
}

VerseSpacer = {
  %%  volta
    \repeat unfold 6 { r2 }
  %%  alt. 1
    r2 |
  %%  alt. 2
    r2 |
    r2 |
  %%  after
    \repeat unfold 9 { r2 | }
}

SopranoMusic = \relative c'' {
    \set Staff.vocalName = "Soprano"
    \set Staff.shortVocalName = "S"
    \clef treble
  %% Verse 1 - 3
    \VerseOneUnison
    b8. a16 b8 c | d8. d16 b8 g | d'8. d16 b8 g |
    a8. r16 d,4^> | g8 a g fs | e r a4^> |
    fs8 a c b | g4. r8 | r2 |
  %% Interlude
    \VerseSpacer
  %% Verse 4
    <<
      {
        \voiceOne
        cs4 cs8 cs | cs cs d d | d4 d8 d |
          { fs8 e cs4 | }
          { fs8 e cs4~ | cs r8 cs8 | }
          e8. e16 e8 e | \repeat unfold 2 { cs8. cs16 cs8 cs | }
          d8. r16 d4^> | cs8 cs cs cs | d8. r16 d4^> |
          b8 b b b | cs8. r16 r4 | r2
        }
        \new Voice {
          \voiceTwo
          a4 e8 a | cs a b gs | b4 gs8 b |
          { d8 cs a4 | }
          { e'8 cs a4~ | a4 r8 cs8 | }
          cs8. b16 cs8 d | e8. e16 cs8 a | e'8. e16 cs8 a |
          b8. r16 e,4 | a8 b a gs | fs8. r16 b4 | gs8 b d cs | a8. r16 r4 | r2 |
        }
      >>
      \oneVoice
   }

\score {
  \new ChoirStaff <<
      \new Staff \new Voice << \Global \SopranoMusic >>
    >>
  \layout {
    \context {
      \Score
      \override BarNumber.stencil = #(make-stencil-circler 0.1 0.25 
ly:text-interface::print)
    }
    \context {
      \ChoirStaff
      \override VerticalAxisGroup.staff-staff-spacing = #'((basic-distance . 6) 
(minimum-distance . 2) (padding . 1))
    }
    \context {
      \Staff
      autoBeaming = ##f
      \RemoveEmptyStaves
      \override VerticalAxisGroup.remove-first = ##t
    }
  }
}

_______________________

Kieren MacMillan, composer
www:  <http://www.kierenmacmillan.info>
email:  address@hidden




reply via email to

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