question about putting music expressions in sequence

2015-08-22 Thread Peter Selinger
Hello,

I have a question about using lyrics with automatic syllable
durations, when putting music expressions in sequence.

The Learning Manual states: Putting a group of music expressions
(e.g. notes) in braces means that they are in sequence (i.e. each one
follows the previous one). The result is another music expression.

I have a piece consistsing of several verses that must be engraved
individually (each verse has a different melody and accompaniment).
I'd like to arrange the input file so that the data is grouped by
verse (rather than by voice). I was able to make this work using
sequencing like this (see test1.pdf):

  \version 2.18.2
  
  {
% First verse   

  \new Voice = up \relative c' { e f g a }
  \new Lyrics = lyrics \lyricmode { Words to first verse }
  \new Voice = down \relative c' { c d e f }

% Seconds verse 

  \context Voice = up \relative c' { f g a b }
  \context Lyrics = lyrics \lyricmode { Words to next verse }
  \context Voice = down \relative c' { d e f g }

  }

However, this only works as long as I enter manual syllable
durations. If I try to use automatic syllable durations, everything
breaks (see test2.pdf):

  \version 2.18.2
  
  {
% First verse 

  \new Voice = up \relative c' { e f g a }
  \new Lyrics = lyrics \lyricsto up { Words to first verse }
  \new Voice = down \relative c' { c d e f }

% Seconds verse   

  \context Voice = up \relative c' { f g a b }
  \context Lyrics = lyrics \lyricsto up { Words to next verse }
  \context Voice = down \relative c' { d e f g }

  }

Not only does the second set of lyrics generate an error message, but
also the notes to the second verse are not typeset at all, and an
extra (empty) pair of staves is generated.

Is there a way to make this work? (I realize that I could put all the
information into variables, and rearrange the expression to be grouped
by voice rather than verse. However, I am looking for a way to make
the above grouping work).

Thanks, -- Peter


test2.pdf
Description: PDF document, version 1.4


test1.pdf
Description: PDF document, version 1.4
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: question about putting music expressions in sequence

2015-08-22 Thread Phil Holmes
- Original Message - 
From: Peter Selinger selin...@mathstat.dal.ca

To: lilypond-user@gnu.org
Sent: Saturday, August 22, 2015 3:32 PM
Subject: question about putting music expressions in sequence



Hello,

I have a question about using lyrics with automatic syllable
durations, when putting music expressions in sequence.

The Learning Manual states: Putting a group of music expressions
(e.g. notes) in braces means that they are in sequence (i.e. each one
follows the previous one). The result is another music expression.

I have a piece consistsing of several verses that must be engraved
individually (each verse has a different melody and accompaniment).
I'd like to arrange the input file so that the data is grouped by
verse (rather than by voice). I was able to make this work using
sequencing like this (see test1.pdf):

 \version 2.18.2

 {
   % First verse
   
 \new Voice = up \relative c' { e f g a }
 \new Lyrics = lyrics \lyricmode { Words to first verse }
 \new Voice = down \relative c' { c d e f }
   
   % Seconds verse
   
 \context Voice = up \relative c' { f g a b }
 \context Lyrics = lyrics \lyricmode { Words to next verse }
 \context Voice = down \relative c' { d e f g }
   
 }

However, this only works as long as I enter manual syllable
durations. If I try to use automatic syllable durations, everything
breaks (see test2.pdf):

 \version 2.18.2

 {
   % First verse
   
 \new Voice = up \relative c' { e f g a }
 \new Lyrics = lyrics \lyricsto up { Words to first verse }
 \new Voice = down \relative c' { c d e f }
   
   % Seconds verse
   
 \context Voice = up \relative c' { f g a b }
 \context Lyrics = lyrics \lyricsto up { Words to next verse }
 \context Voice = down \relative c' { d e f g }
   
 }

Not only does the second set of lyrics generate an error message, but
also the notes to the second verse are not typeset at all, and an
extra (empty) pair of staves is generated.

Is there a way to make this work? (I realize that I could put all the
information into variables, and rearrange the expression to be grouped
by voice rather than verse. However, I am looking for a way to make
the above grouping work).


It looks to me that you have posted the same example twice, both of which 
work as planned, and neither of which provides the output you've attached. 
Please check.


--
Phil Holmes 



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


Re: question about putting music expressions in sequence

2015-08-22 Thread Peter Selinger
Dear David, Phil, and Thomas,

thanks for your quick replies! I'm surprised that as a newbie, I was
able to find a bug in less than 24 hours of using Lilypond. But it's
fortunate that it has already been fixed!

I had double-checked that 2.18.2 is the most current version by
checking that it is the version described in the documentation:
http://www.lilypond.org/website/manuals.html

But I had forgotten that there is also an unstable release. 

Great, thanks again for your help! I'll report back in case I run into
any more problems. -- Peter

David Kastrup wrote:
 
 Phil Holmes m...@philholmes.net writes:
 
  It looks to me that you have posted the same example twice, both of
  which work as planned, and neither of which provides the output you've
  attached. Please check.
 
 Well, let's see:
 
 First version:
 
   \new Lyrics = lyrics \lyricmode { Words to first verse }
 [...]
   \context Lyrics = lyrics \lyricmode { Words to next verse }
 
 Second version:
 
   \new Lyrics = lyrics \lyricsto up { Words to first verse }
 [...]
   \context Lyrics = lyrics \lyricsto up { Words to next verse }
 
 Looks different to me.  Also, either version:
 
  \version 2.18.2
 
 And indeed, version 2.18.2 falls flat rather uglily on the second
 version while current LilyPond versions have no problem with it.
 
 This is issue 2010
 URL:https://code.google.com/p/lilypond/issues/detail?id=2010, fixed in
 version 2.19.16 but likely not in a manner where this example would
 work.  I suspect this example would require the fix from issue 4419
 URL:https://code.google.com/p/lilypond/issues/detail?id=4419 in order
 not to be stopped short, meaning a version of LilyPond of 2.19.23 or
 later.
 
  Is there a way to make this work? (I realize that I could put all the
  information into variables, and rearrange the expression to be
  grouped by voice rather than verse. However, I am looking for a way
  to make the above grouping work).
 
 Upgrade.  The respective fixes are in C++ code so there is no way you
 can just patch up some parts of LilyPond.
 
 -- 
 David Kastrup
 


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


Re: question about putting music expressions in sequence

2015-08-22 Thread David Kastrup
selin...@mathstat.dal.ca (Peter Selinger) writes:

 Dear David, Phil, and Thomas,

 thanks for your quick replies! I'm surprised that as a newbie, I was
 able to find a bug in less than 24 hours of using Lilypond.

Well, it is a bug of the we don't do it like that kind that newbies
are more likely to encounter than old hands.  Of course, that we don't
do it like that might be related to those problems having defied fixes
for a number of years.

 But it's fortunate that it has already been fixed!

 I had double-checked that 2.18.2 is the most current version by
 checking that it is the version described in the documentation:
 http://www.lilypond.org/website/manuals.html

 But I had forgotten that there is also an unstable release. 

Well, there were several changes in behavior in the last months so it
actually deserves the name.  It's rare that an unstable release is
unusable.  But that has also happened for some use cases.  But if one
does not mind updating somewhat more frequently (and, in the case of a
personal emergency, paddling back), the unstable releases tend to be
more user-friendly after some time than the stable ones.

-- 
David Kastrup

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


Re: question about putting music expressions in sequence

2015-08-22 Thread David Kastrup
Phil Holmes m...@philholmes.net writes:

 It looks to me that you have posted the same example twice, both of
 which work as planned, and neither of which provides the output you've
 attached. Please check.

Well, let's see:

First version:

  \new Lyrics = lyrics \lyricmode { Words to first verse }
[...]
  \context Lyrics = lyrics \lyricmode { Words to next verse }

Second version:

  \new Lyrics = lyrics \lyricsto up { Words to first verse }
[...]
  \context Lyrics = lyrics \lyricsto up { Words to next verse }

Looks different to me.  Also, either version:

 \version 2.18.2

And indeed, version 2.18.2 falls flat rather uglily on the second
version while current LilyPond versions have no problem with it.

This is issue 2010
URL:https://code.google.com/p/lilypond/issues/detail?id=2010, fixed in
version 2.19.16 but likely not in a manner where this example would
work.  I suspect this example would require the fix from issue 4419
URL:https://code.google.com/p/lilypond/issues/detail?id=4419 in order
not to be stopped short, meaning a version of LilyPond of 2.19.23 or
later.

 Is there a way to make this work? (I realize that I could put all the
 information into variables, and rearrange the expression to be
 grouped by voice rather than verse. However, I am looking for a way
 to make the above grouping work).

Upgrade.  The respective fixes are in C++ code so there is no way you
can just patch up some parts of LilyPond.

-- 
David Kastrup

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


Re: question about putting music expressions in sequence

2015-08-22 Thread Peter Selinger
Hi Phil,

I just double-checked: 

* my two posted code snippets are not the same (the first uses
  \lyricmode and the second uses \lyricsto, as I had mentioned in the
  accompanying text).

* the two posted code snippets produce exactly the respective output I
  attached.

I'm using GNU LilyPond 2.18.2, as included in the current Ubuntu
distribution.

Could you double-check that you really can't reproduce the output? 

Thanks, -- Peter


Phil Holmes wrote:
 
 - Original Message - 
 From: Peter Selinger selin...@mathstat.dal.ca
 To: lilypond-user@gnu.org
 Sent: Saturday, August 22, 2015 3:32 PM
 Subject: question about putting music expressions in sequence
 
 
  Hello,
 
  I have a question about using lyrics with automatic syllable
  durations, when putting music expressions in sequence.
 
  The Learning Manual states: Putting a group of music expressions
  (e.g. notes) in braces means that they are in sequence (i.e. each one
  follows the previous one). The result is another music expression.
 
  I have a piece consistsing of several verses that must be engraved
  individually (each verse has a different melody and accompaniment).
  I'd like to arrange the input file so that the data is grouped by
  verse (rather than by voice). I was able to make this work using
  sequencing like this (see test1.pdf):
 
   \version 2.18.2
 
   {
 % First verse
 
   \new Voice = up \relative c' { e f g a }
   \new Lyrics = lyrics \lyricmode { Words to first verse }
   \new Voice = down \relative c' { c d e f }
 
 % Seconds verse
 
   \context Voice = up \relative c' { f g a b }
   \context Lyrics = lyrics \lyricmode { Words to next verse }
   \context Voice = down \relative c' { d e f g }
 
   }
 
  However, this only works as long as I enter manual syllable
  durations. If I try to use automatic syllable durations, everything
  breaks (see test2.pdf):
 
   \version 2.18.2
 
   {
 % First verse
 
   \new Voice = up \relative c' { e f g a }
   \new Lyrics = lyrics \lyricsto up { Words to first verse }
   \new Voice = down \relative c' { c d e f }
 
 % Seconds verse
 
   \context Voice = up \relative c' { f g a b }
   \context Lyrics = lyrics \lyricsto up { Words to next verse }
   \context Voice = down \relative c' { d e f g }
 
   }
 
  Not only does the second set of lyrics generate an error message, but
  also the notes to the second verse are not typeset at all, and an
  extra (empty) pair of staves is generated.
 
  Is there a way to make this work? (I realize that I could put all the
  information into variables, and rearrange the expression to be grouped
  by voice rather than verse. However, I am looking for a way to make
  the above grouping work).
 
 It looks to me that you have posted the same example twice, both of which 
 work as planned, and neither of which provides the output you've attached. 
 Please check.
 
 --
 Phil Holmes 
 


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


Re: question about putting music expressions in sequence

2015-08-22 Thread Thomas Morley
2015-08-22 16:32 GMT+02:00 Peter Selinger selin...@mathstat.dal.ca:
 Hello,

 I have a question about using lyrics with automatic syllable
 durations, when putting music expressions in sequence.

 The Learning Manual states: Putting a group of music expressions
 (e.g. notes) in braces means that they are in sequence (i.e. each one
 follows the previous one). The result is another music expression.

 I have a piece consistsing of several verses that must be engraved
 individually (each verse has a different melody and accompaniment).
 I'd like to arrange the input file so that the data is grouped by
 verse (rather than by voice). I was able to make this work using
 sequencing like this (see test1.pdf):

   \version 2.18.2

   {
 % First verse
 
   \new Voice = up \relative c' { e f g a }
   \new Lyrics = lyrics

\lyricmode
^^^

 { Words to first verse }
   \new Voice = down \relative c' { c d e f }
 
 % Seconds verse
 
   \context Voice = up \relative c' { f g a b }
   \context Lyrics = lyrics \lyricmode { Words to next verse }
   \context Voice = down \relative c' { d e f g }
 
   }

 However, this only works as long as I enter manual syllable
 durations. If I try to use automatic syllable durations, everything
 breaks (see test2.pdf):

   \version 2.18.2

   {
 % First verse
 
   \new Voice = up \relative c' { e f g a }
   \new Lyrics = lyrics

\lyricsto up
^^^

 { Words to first verse }
   \new Voice = down \relative c' { c d e f }
 
 % Seconds verse
 
   \context Voice = up \relative c' { f g a b }
   \context Lyrics = lyrics \lyricsto up { Words to next verse }
   \context Voice = down \relative c' { d e f g }
 
   }

 Not only does the second set of lyrics generate an error message, but
 also the notes to the second verse are not typeset at all, and an
 extra (empty) pair of staves is generated.

 Is there a way to make this work? (I realize that I could put all the
 information into variables, and rearrange the expression to be grouped
 by voice rather than verse. However, I am looking for a way to make
 the above grouping work).

 Thanks, -- Peter


I'd recommend upgrading

2.19.25 prints for your second example the attached.
As wanted, I guess

Cheers,
  Harm
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: question about putting music expressions in sequence

2015-08-22 Thread Phil Holmes
- Original Message - 
From: Peter Selinger selin...@mathstat.dal.ca

To: Phil Holmes m...@philholmes.net
Cc: lilypond-user@gnu.org
Sent: Saturday, August 22, 2015 4:05 PM
Subject: Re: question about putting music expressions in sequence



Hi Phil,

I just double-checked:

* my two posted code snippets are not the same (the first uses
 \lyricmode and the second uses \lyricsto, as I had mentioned in the
 accompanying text).

* the two posted code snippets produce exactly the respective output I
 attached.

I'm using GNU LilyPond 2.18.2, as included in the current Ubuntu
distribution.

Could you double-check that you really can't reproduce the output?

Thanks, -- Peter


Apologies: looked but did not see.  I'm using 2.19.23 currently, and for 
both snippets this works as you would want.  I suggest an update might be in 
order.


--
Phil Holmes 



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