I've changed my approach - I felt all along that the rests were what was screwing things up. (Which means, I think, that if I copy your example exactly as you've given it, it'll be just as big a mess as before. But I'll try your approach in a minute - I'm still going to send this email because I do think there's something fundamentally wrong under this somewhere...)
Unfortunately, I've just swapped one error for another. I've redefined
pennsylvania as
pennsylvania = { r2_\markup{ shout }
{ \override NoteHead #'style = #'cross f8. f16 f8. f16 f4 f f8.
f16 }
\addlyrics { Penn syl van ia six five thous and }
r4 }
which has had several effects. I no longer need to reset the notehead
style. lilypond no longer complains about getting its timing in a twist.
It is now complaining about trying to put noteheads and stems on a rest
(the r4 - and yes I did try reverting the notehead style - no effect
whatsoever). And because I've got two consecutive occurrences on the
same line, it's making the two lots of text avoid each other, which
looks daft.
Graham - I'll have to write something for the docs (I'm working from
2.8.0) because there appears to be no examples at all about how to embed
a lyric fragment in a larger piece. I'm attaching the lyrics to the
notes no problem - it's getting the resultant fragment successfully into
the bigger work that's the problem!
And part of that problem at least seems to be that \addlyrics just does
not like rests!
More investigation to follow - my current source attached ...
Cheers,
Wol
-----Original Message-----
From: Mats Bengtsson [mailto:[EMAIL PROTECTED]
Sent: 08 June 2006 12:43
To: Anthony Youngman
Cc: [email protected]
Subject: Re: Lyrics problem ...
I got the same programming error but still the output looked right
in the simplified example I tried. However, a "better" solution is to
use \lyricsto. For example, you can define a separate Voice context
for the music that the lyrics should follow and define a separate
identifier for the lyrics:
pennsylvania = \context Voice = pennsylvania {
\override NoteHead #'style = #'cross
r2_\markup{ shout } f8. f16 f8. f16 f4 f f8. f16 r4
}
pennsylvaniaLyrics = \lyricmode { Penn syl van ia six five thous and }
and redefine your \score block to:
\score {
<<
\new Staff {
\set Score.skipBars = ##t
{
\clef "bass"
<<
\voiceTimeSig
\voiceTromboneI
\voiceMarkup
>>
}
}
\new Lyrics \lyricsto pennsylvania {
\pennsylvaniaLyrics \pennsylvaniaLyrics
}
>>
\layout {
}
}
/Mats
Anthony Youngman wrote:
>Just tried swapping your version for mine. No improvement :-(
>
>And I'm still getting "programming error: moving backwards in time" in
>the logs ...
>
>Cheers,
>Wol
>
>-----Original Message-----
>From: Mats Bengtsson [mailto:[EMAIL PROTECTED]
>Sent: 08 June 2006 11:34
>To: Anthony Youngman
>Cc: [email protected]
>Subject: Re: Lyrics problem ...
>
>The problem is that \addlyrics doesn't really work that way, see Sect.
>"7.3.4 The Lyrics Context".
>It seems that the following version actually does work:
>
>pennsylvania = <<
> \new Voice{\override NoteHead #'style = #'cross
> r2_\markup{ shout } f8. f16 f8. f16 f4 f f8. f16 r4 }
> \addlyrics { Penn syl van ia six five thous and }
> >>
>
>
> /Mats
>
>Anthony Youngman wrote:
>
>
>
>>I'm now trying to add some words to a phrase ...
>>
>>pennsylvania = {
>> { \override NoteHead #'style = #'cross
>> r2_\markup{ shout } f8. f16 f8. f16 f4 f f8. f16 r4 }
>>% \addlyrics { Penn syl van ia six five thous and }
>>}
>>
>>voiceTromboneI = \relative c' {
>>
>> r2 ef4.-- ef8-> ~ ef1 r2 r4 bf8.->( ef16-.) r2 r4 ef,8. af,16->
>>~ |
>>\break
>> af2 c-- df-- d-- ef-- df-- c-- bf-- |
>>\break
>> \repeat "volta" 2 { R1*6 } \alternative { { \resetOctave f
>>\pennsylvania } { \pennsylvania } }
>>
>>}
>>
>>Note that the addlyrics line is commented out ... and I've copied the
>>layout of this from the example at the end of 7.3.1 in the manual ...
>>
>>The music "knows" from elsewhere that both my alternative sections are
>>two bars long. When I compile the above, it works perfectly - the
notes
>>appear perfectly in the time bars.
>>
>>As soon as I uncomment the lyrics line, the lyrics appear over the
>>correct notes, but the entire phrase seems to become four bars long -
>>completely messing up the bar structure! What am I doing wrong?
>>
>>Note that the music both starts and ends with a rest, which is why I
>>haven't tried specifying music lengths for the words - and it seems to
>>be shoving the words in the correct place anyway.
>>
>>Cheers,
>>Wol
>>
>>*
>>
>>
>***********************************************************************
*
>*
>
>
>>This transmission is intended for the named recipient only. It may
>>
>>
>contain private and confidential information. If this has come to you
in
>error you must not act on anything disclosed in it, nor must you copy
>it, modify it, disseminate it in any way, or show it to anyone. Please
>e-mail the sender to inform us of the transmission error or telephone
>ECA International immediately and delete the e-mail from your
>information system.
>
>
>>Telephone numbers for ECA International offices are: Sydney +61 (0)2
>>
>>
>8272 5300, Hong Kong + 852 2121 2388, London +44 (0)20 7351 5000 and
New
>York +1 212 582 2333.
>
>
>>*
>>
>>
>***********************************************************************
*
>*
>
>
>>_______________________________________________
>>lilypond-user mailing list
>>[email protected]
>>http://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>>
>>
>>
>
>
>
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
* ************************************************************************ *
This transmission is intended for the named recipient only. It may contain
private and confidential information. If this has come to you in error you must
not act on anything disclosed in it, nor must you copy it, modify it,
disseminate it in any way, or show it to anyone. Please e-mail the sender to
inform us of the transmission error or telephone ECA International immediately
and delete the e-mail from your information system.
Telephone numbers for ECA International offices are: Sydney +61 (0)2 8272 5300,
Hong Kong + 852 2121 2388, London +44 (0)20 7351 5000 and New York +1 212 582
2333.
* ************************************************************************ *
voiceStaff.ly
Description: voiceStaff.ly
partTromboneI.ly
Description: partTromboneI.ly
header.ly
Description: header.ly
voiceTromboneI.ly
Description: voiceTromboneI.ly
_______________________________________________ lilypond-user mailing list [email protected] http://lists.gnu.org/mailman/listinfo/lilypond-user
