lilypond-user
[Top][All Lists]
Advanced

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

Problem with staffs and lyrics


From: Jorge Pena
Subject: Problem with staffs and lyrics
Date: Wed, 30 Sep 2009 12:40:51 +0100

Hello,

I'm converting a repository of music in abc format to lilypond (from my local
church choir here in Portugal) and I'm liking lilypond very much.

But I have still some problems even after reading carefully the docs. I have
this music piece outputed by abcm2ps
(http://coro.paroquiabaixadabanheira.org/reportorio/santo/santo.leonel.claro.pdf)

With lilypond I am unable to put the lyrics below the bottom staff. Also I get a
strange spacing after the double bar in the second line. Below is my lilypond
code and I would appreciate if someone could tell me what I am doing wrong or
how to achieve the intended results.

### begin lilypond code ###
#(set-default-paper-size "a4")
\version "2.12.1"

\header {
  title = "Santo"
  composer = "Leonel Claro"
  tagline = "Coro da Paróquia da Baixa da Banheira"
}

\include "predefined-guitar-fretboards.ly"
harmoniesA = \chordmode {
  \italianChords
  d1 r r r a1 g d g d e a2 e:7 a1:7
}
harmoniesB = \chordmode {
  \italianChords
  d1 g d a g d a r d a:7 d
}
harmoniesC = \chordmode {
  \italianChords
  b:m fis g a:7
}

melodyA = \relative c' {
  \key d \major
  \time 4/4
  \override NoteColumn #'ignore-collision = ##t
  d2 d ~ d ~ d ~ d ~ d
  d' cis4 b a1 b4 a g g a2 a2
  b4 b d b a a a a b2 b cis b a1 \bar "||"
}

melodyAI = \relative c' {
  \override NoteColumn #'ignore-collision = ##t
  s1 fis2 fis ~ fis ~ fis
}

melodyAII = \relative c'' {
  \override NoteColumn #'ignore-collision = ##t
  s1 s a2 a
}

lyricsAI = \lyricmode {
  San -- to, __ San -- to_o Se -- nhor Deus do u -- ni -- ver -- so.
  O céu e a ter -- ra can -- tam tu -- a gló -- ri -- a!
}

lyricsAII = \lyricmode {
  San -- to, __
}

lyricsAIII = \lyricmode {
  San -- to,
}

melodyBI = \relative c'' {
  \repeat volta 2 {
    d2 a b1 a2 fis e1 \break g2 b
  }
  \alternative {
    { a2 g4 fis e1 a }
    { a2 d4 b cis1 d }
  }
}

lyricsBI = \lyricmode {
  Hos -- sa -- na, hos -- sa -- na,
  ho -- sa -- na nas al -- tu -- ras.
  --na nas al -- tu -- ras!
}

lyricsBII = \lyricmode {
  Hos -- sa -- na, hos -- sa -- na __
  nas al -- tu -- ras.
  \skip 2 nas al -- tu -- ras!
}

melodyBII = \relative c'' {
  \key d \major
  \repeat volta 2 {
  r1 b2 g a1 a2 cis d1 ~
  }  
  \alternative {
    { d2 b4 a cis1 a }
    { d2 b4 g a1 fis }
  }
}

melodyC = \relative c'' {
  d4 d d b cis d8 cis ~ cis2 b b4. b8 a4 g a2 \bar "|."
}

lyricsC = \lyricmode {
  Ben -- di -- to_a -- que -- le que vem __
  em no -- me do Se -- nhor.
}

\score {
  \new ChoirStaff <<
    \new ChordNames { \harmoniesA \harmoniesB \harmoniesC }
    {
      % primeira parte (1 voz)
      \new Staff <<
        \new Voice = "partA" { \melodyA \break }
        \new Voice = "partAI" { \melodyAI }
        \new Voice = "partAII" { \melodyAII }
      >>
      % segunda parte 2 vozes 2 staffs
      <<
        \new Voice = "partBI" { \melodyBI \break }
        \new Staff = two <<
          \new Voice = "partBII" \melodyBII
        >>
      >>
      % terceira parte 1 voz
      \new Voice = "partC" { \melodyC }
    }
    \new Lyrics \lyricsto "partA" \lyricsAI
    \new Lyrics \lyricsto "partAI" \lyricsAII
    \new Lyrics \lyricsto "partAII" \lyricsAIII
    \new Lyrics \lyricsto "partBI" \lyricsBI
    \new Lyrics \with { alignBelowContext = two } \lyricsto "partBII" \lyricsBII
    \new Lyrics \lyricsto "partC" \lyricsC
  >>
  \layout { }
  \midi { }
}
### end lilypond code ###

Thanks in advance for any help.

--
Jorge Pena

reply via email to

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