[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "moving backwards in time" ?
From: |
Erik Sandberg |
Subject: |
Re: "moving backwards in time" ? |
Date: |
Thu, 12 Jan 2006 23:37:49 +0100 |
User-agent: |
KMail/1.8.3 |
On Thursday 12 January 2006 19.19, Gilles wrote:
> Hello.
>
> > > I'm confused by the output of the attached file: lilypond creates
> > > an empty bar. [And generates a "programming error".]
> > > And the clef change indicator is pushed to the next line.
> > >
> > > Without the addition of the second "\transpose" part, the output
> > > is as expected.
> > > Also, if the "\lyricsto" line is commented out, it comes out fine.
> > >
> > > Should I do this in another way or is it a bug?
> >
> > This is a known bug (or limitation). You should not use \lyricsto
> > sequentially, that will sometimes produce weird results.
> >
> > It is always possible to do the two part using a single \lyricsto
> > command, which contains the two sequential parts; however, you will need
> > to change the structure of the .ly file slightly.
>
> I can't seem to figure out how to slightly change the structure to make
> it work :-{
>
> I tried with "\addlyrics" but it shows only one line of the "caption"
> instead of one for each transposed part...
> Several "\addlyrics" produce the same problem as "\lyricsto".
>
> Any hint?
Perhaps something like this can work?
modeOnD = \context Voice = "notes" { \theNotes }
theLyrics = \context Lyrics = "text" { \text \text }
theStaff = \context Staff = "Mode" \with { \remove "Time_signature_engraver" }
{
\transpose d d { \modeOnD }
\break
\transpose d c { \modeOnD }
}
theMusic = <<
\theStaff
\lyricsto "notes" \theLyrics
>>
--
Erik