jperon/gabctk

Sortie Lilypond est invalide

FGasper opened this issue · 2 comments

name: First Sunday of Advent ;
user-notes: INTROIT Ad te levavi ;
commentary: Psalm 25;
annotation: viii ;
centering-scheme: english;
%fontsize: 12;
%spacing: vichi;
%font: OFLSortsMillGoudy;
%width: 4.5;
%height: 11;
%%
(c4)To(gd) you,(f) O(gh) Lord,(hg) (,)  (::)

^^ Cela produit:

\version "2.18"

\header {
  title = "First Sunday of Advent"
  tagline = ""
  composer = ""
}

\paper {
 #(include-special-characters)
}

MusiqueTheme = {
 \key c\major
%1
 g'8[( d'8)]
%2
 f'8
%3
 g'8[( a'8)]
%4
 a'8[( g'8)]
%5
 \bar "'"
%6
 \bar "||"
}

Paroles = \lyricmode {
%1
 -- To
%2
you,
%3
O
%4
Lord,
%5
%6

}

\score{
  <<
    \new Staff <<
      \set Staff.midiInstrument = "flute"
      \set Staff.autoBeaming = ##f
      \new Voice = "theme" {
        \cadenzaOn \transpose c des{\MusiqueTheme}
      }
    >>
    \new Lyrics \lyricsto theme {
      \Paroles
    }
  >>
  \layout{
    \context {
      \Staff
      \override TimeSignature #'stencil = #point-stencil
      \override Slur #'stencil = ##f
    }
  }
  \midi{}
}

Me paraît que -- avant de “To” est le probleme … ?

There should be a space after the clef in the gabc code, as it isn't a part of the first word :

(c4) To(gd) you,(f)

gabctk determines that a syllable belongs to the same one as the previous one thanks to the absence of a space after a closing parenthesis.

@jperon Then shouldn’t gabctk throw an error rather than generating invalid lilypond?

Both Gregorio and Illuminare renderers handle this notation just fine.