Re: Lyrics problem ... Bug? Feature? ???

2006-06-13 Thread Graham Percival


On 12-Jun-06, at 6:04 AM, Mats Bengtsson wrote:


Anthony Youngman wrote:


And I'll download and read the 2.9 docu at some point. Although I get
the impression it might not be a good idea to upgrade for a while ...

Actually, the manuals for 2.8 and 2.9 are (almost) identical for the 
moment.


At this moment, I would consider the 2.9 docs significantly better than 
the 2.8 docs.  Off the top of my head, I think that I've completely 
reorganized and added new stuff to scheme, changing defaults, and 
spacing.  Some of the material in chapters 3-5 might be new in the 2.9 
docs as well.


In addition, there are no 2.9-only features in the 2.9 docs yet.  
Everything in the 2.9 docs should work in 2.8, and many things are 
explained much better.  New features will probably be added to the 
documentation soon; I'm not going to bother with the "separate chapter" 
idea for the next release


Cheers,
- Graham



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lyrics problem ... Bug? Feature? ???

2006-06-12 Thread Mats Bengtsson



Anthony Youngman wrote:


And I'll download and read the 2.9 docu at some point. Although I get
the impression it might not be a good idea to upgrade for a while ...
 

Actually, the manuals for 2.8 and 2.9 are (almost) identical for the 
moment.

The main difference is that the one for 2.9 is released more often, so it
often has some new material that hasn't made it to the latest 2.8 manual 
yet.

As far as I understand, the idea is that new features for version 2.9 are
described in a separate chapter of the manual that then is pasted into the
main text just before the next stable release. Otherwise Graham would
have been too busy keeping two versions of the manual up to date in 
parallel.


  /Mats


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Lyrics problem ... Bug? Feature? ???

2006-06-12 Thread Anthony Youngman
Thanks. 

I'll play with all this and see where I get. I thought what I was doing
WAS simple :-( I'll also try the {} you mention in your other email.

And I'll download and read the 2.9 docu at some point. Although I get
the impression it might not be a good idea to upgrade for a while ...

Cheers,
Wol

-Original Message-
From: Mats Bengtsson [mailto:[EMAIL PROTECTED] 
Sent: 12 June 2006 13:25
To: Anthony Youngman
Cc: lilypond-user@gnu.org; lilypond-devel@gnu.org
Subject: Re: Lyrics problem ... Bug? Feature? ???



Anthony Youngman wrote:

>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. 
>
What you said here made me completely confused, so I had to take a look
at
the implementation and learned something new. The construct
music_expression \addlyrics lyrics
will create a new Voice context for the music_expression.

>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.
>
The timing gets lost already at the end of the prima volta. I have no
idea
on what's going on here. Replacing
music_expression \addlyrics lyrics
by
\new Voice music_expression
in your example works well, so there's something more going on here that
I don't understand fully.

Still, my impression is that \addlyrics mainly was implemented to
support
extremely simple situations where your score in principle only has a
melody
and one or more lines of lyrics. What makes your example extra
complicated
is that you want to insert the same construct at a number of places in
the
score.

In a way, maybe the simplest solution for you is to do
pennsylvania = { r2_\markup{ shout }
  <<
\new Voice { \override NoteHead #'style = #'cross f8. f16 f8. f16 f4

f f8. f16 }
\context Lyrics = pennsylvanialyrics \lyricmode{ Penn8. syl16 van8. 
ia16 six4 five4 thous8. and16 }
  >>
  r4 }
Unfortunately, it means that you have to specify the durations of the 
syllables
explicictly. Also,  the second set of lyrics gets  typeset one line too 
low. I will
write a separate bug report about that issue.

>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. 
>
Sure there is! In the latest manual for version 2.9, you can find two 
examples
in section "7.3.7.2 Divisi lyrics" and I know that Eduardo has sent a
draft
of even more documentation to Graham, with related information.


/Mats



*  *

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
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Lyrics problem ... Bug? Feature? ???

2006-06-12 Thread Mats Bengtsson

It works if you make sure to keep the Voice context "pennsylvania"
alive between the different places in the score where you use your 
\pennsylvania.

For example, you can add the following in your \score block:

\score {
<<
   \new Staff {
   \set Score.skipBars = ##t
{
   \clef "bass"
   <<
   \new Voice = pennsylvania {s1*39}
   \voiceTimeSig
   \voiceTromboneI
   \voiceMarkup
   >>
   }
   }
   \new Lyrics \lyricsto pennsylvania {
\pennsylvaniaLyrics
   }
>>
   \layout {
   }
}


  /Mats

Anthony Youngman wrote:


Ummm ... your approach "worked". Except not completely :-(

You'll notice my revised stuff has THREE occurrences of the lyrics (so
far). So I did a '\repeat "unfold" 3'. And got lyrics for the first two
only :-(

How difficult can it be :-( All I'm trying to do is create a two-bar
fragment that gets repeated in several places, so I can just drop it
into the music where it's needed ...

Cheers,
Wol

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] On Behalf Of Anthony Youngman
Sent: 12 June 2006 12:04
To: Mats Bengtsson
Cc: lilypond-devel@gnu.org; lilypond-user@gnu.org
Subject: RE: Lyrics problem ... Bug? Feature? ???

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: lilypond-user@gnu.org
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: lilypond-user@gnu.org
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 w

Re: Lyrics problem ... Bug? Feature? ???

2006-06-12 Thread Mats Bengtsson



Anthony Youngman wrote:


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. 


What you said here made me completely confused, so I had to take a look at
the implementation and learned something new. The construct
music_expression \addlyrics lyrics
will create a new Voice context for the music_expression.


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.


The timing gets lost already at the end of the prima volta. I have no idea
on what's going on here. Replacing
music_expression \addlyrics lyrics
by
\new Voice music_expression
in your example works well, so there's something more going on here that
I don't understand fully.

Still, my impression is that \addlyrics mainly was implemented to support
extremely simple situations where your score in principle only has a melody
and one or more lines of lyrics. What makes your example extra complicated
is that you want to insert the same construct at a number of places in the
score.

In a way, maybe the simplest solution for you is to do
pennsylvania = { r2_\markup{ shout }
 <<
   \new Voice { \override NoteHead #'style = #'cross f8. f16 f8. f16 f4 
f f8. f16 }
   \context Lyrics = pennsylvanialyrics \lyricmode{ Penn8. syl16 van8. 
ia16 six4 five4 thous8. and16 }

 >>
 r4 }
Unfortunately, it means that you have to specify the durations of the 
syllables
explicictly. Also,  the second set of lyrics gets  typeset one line too 
low. I will

write a separate bug report about that issue.


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. 

Sure there is! In the latest manual for version 2.9, you can find two 
examples

in section "7.3.7.2 Divisi lyrics" and I know that Eduardo has sent a draft
of even more documentation to Graham, with related information.


   /Mats




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


RE: Lyrics problem ... Bug? Feature? ???

2006-06-12 Thread Anthony Youngman
Ummm ... your approach "worked". Except not completely :-(

You'll notice my revised stuff has THREE occurrences of the lyrics (so
far). So I did a '\repeat "unfold" 3'. And got lyrics for the first two
only :-(

How difficult can it be :-( All I'm trying to do is create a two-bar
fragment that gets repeated in several places, so I can just drop it
into the music where it's needed ...

Cheers,
Wol

-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
.org] On Behalf Of Anthony Youngman
Sent: 12 June 2006 12:04
To: Mats Bengtsson
Cc: lilypond-devel@gnu.org; lilypond-user@gnu.org
Subject: RE: Lyrics problem ... Bug? Feature? ???

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: lilypond-user@gnu.org
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: lilypond-user@gnu.org
>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-- |
>

RE: Lyrics problem ... Bug? Feature? ???

2006-06-12 Thread Anthony Youngman
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: lilypond-user@gnu.org
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: lilypond-user@gnu.org
>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.