Problem with rendering chords + lyrics at the same time in 2.13.6-1

View: New views
10 Messages — Rating Filter:   Alert me  

Problem with rendering chords + lyrics at the same time in 2.13.6-1

by Bugzilla from cskarai@freemail.hu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Hi,

I have a problem, that chords are rendered onto the staff in some cases.
It's quite hard to create a minimal sample, as the bug is not deterministic. If
I change the lyrics, or add new notes, it's possible that it is rendered well,
so I send the file as it is.

Problem:
- first line always OK
- second or third lines are sometimes misrendered.

Thanks in advance,

    Csaba


Lilypond:


\paper {
  indent = 0\mm
  paper-width =  128\mm
  paper-height =  67\mm
  top-margin = 0\mm
  bottom-margin = 0\mm
  left-margin = 0\mm
  right-margin = 0\mm
}

#(set-global-staff-size 16)

\version "2.13.6"

\score {
  <<
    \chords
    {
      d2 a d1 g2 a d1 g2 a d b:m e:m a d1 d2 a d1 g2 a d1 g2 a d b:m e:m a d1
    }
    \relative c''
    {
      \key d \major
      fis,4. fis8 g ( fis4 ) e8 d2 r4 r8 d
      b'4. b8 a4. b8 a2 r4 r8 d,
      b'4. b8 cis4. cis8 d4_ ( a fis ) r8 d
      e4. e8 fis ( e4 ) d8 d2 r4 r8 a
      fis'4. fis8 g4 e d2 r4 r8 d
      b'4 b a4. b8 a2 r4 r8 d,
      b'4 b cis4. cis8 d4_ ( a fis ) r8 d
      e4 e fis8 ( e4 ) d8 d2 r
      \bar "|."
    }
    \addlyrics {
      This is a song. This is a song. This is a song. This is a song. This is a
song.
      This is a song. A B C D E F This is a song. It's a song. This is a song.
This is a song.
      a b
    }
  >>
}





_______________________________________________
bug-lilypond mailing list
bug-lilypond@...
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Re: Problem with rendering chords + lyrics at the same time in 2.13.6-1

by Trevor Daniels :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is a bug, but it is quite hard to nail down.

It seems that Lily tries to cram too much onto a
page, and in the attempt causes the chords line
to overlap with the staff.  Any change which
causes Lily to generate an extra page provides
enough space to render correctly again.  This
might be changing any of the \paper variables,
adding notes or lyrics, etc, making it seem non-
deterministic, but of course the behaviour is
deterministic, just complex.

Karai, does this explanation match what you observe?

Trevor

----- Original Message -----
From: "Karai Csaba" <cskarai@...>
To: <bug-lilypond@...>
Sent: Tuesday, October 27, 2009 6:21 AM
Subject: Problem with rendering chords + lyrics at the same time in
2.13.6-1


>> Hi,
>
> I have a problem, that chords are rendered onto the staff in some
> cases.
> It's quite hard to create a minimal sample, as the bug is not
> deterministic. If
> I change the lyrics, or add new notes, it's possible that it is
> rendered well,
> so I send the file as it is.
>
> Problem:
> - first line always OK
> - second or third lines are sometimes misrendered.
>
> Thanks in advance,
>
>    Csaba
>
>
> Lilypond:
>
>
> \paper {
>  indent = 0\mm
>  paper-width =  128\mm
>  paper-height =  67\mm
>  top-margin = 0\mm
>  bottom-margin = 0\mm
>  left-margin = 0\mm
>  right-margin = 0\mm
> }
>
> #(set-global-staff-size 16)
>
> \version "2.13.6"
>
> \score {
>  <<
>    \chords
>    {
>      d2 a d1 g2 a d1 g2 a d b:m e:m a d1 d2 a d1 g2 a d1 g2 a d
> b:m e:m a d1
>    }
>    \relative c''
>    {
>      \key d \major
>      fis,4. fis8 g ( fis4 ) e8 d2 r4 r8 d
>      b'4. b8 a4. b8 a2 r4 r8 d,
>      b'4. b8 cis4. cis8 d4_ ( a fis ) r8 d
>      e4. e8 fis ( e4 ) d8 d2 r4 r8 a
>      fis'4. fis8 g4 e d2 r4 r8 d
>      b'4 b a4. b8 a2 r4 r8 d,
>      b'4 b cis4. cis8 d4_ ( a fis ) r8 d
>      e4 e fis8 ( e4 ) d8 d2 r
>      \bar "|."
>    }
>    \addlyrics {
>      This is a song. This is a song. This is a song. This is a
> song. This is a
> song.
>      This is a song. A B C D E F This is a song. It's a song. This
> is a song.
> This is a song.
>      a b
>    }
>  >>
> }
>
>
>
>
>
> _______________________________________________
> bug-lilypond mailing list
> bug-lilypond@...
> http://lists.gnu.org/mailman/listinfo/bug-lilypond
>



_______________________________________________
bug-lilypond mailing list
bug-lilypond@...
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Re: Problem with rendering chords + lyrics at the same time in 2.13.6-1

by Bugzilla from cskarai@freemail.hu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I'll check this today, but it seems, that the problem is independent of the
paper height. If I increase the height of the page, the same output is rendered.

I also noticed, that there's huge space at the end of the page such as ~10 mm,
but if I decrease the paper height with ~1 mm, then a new page is started
instead of filling the empty area.

I think, that you are right, but I'll check it later at home.
- I had to compress the music into 3 lines to reproduce the bug
- the problem is independent of the accords (I originally thought, that A7 is
the source of problem)
- if I remove lyrics, the problem no longer happens
- I tried changing stems up/down, but it didn't help
- if the length of music is 20 lines, then some of them are OK, some of them are
wrong, the positions of chords are not additive like: 0, -1, -2 , -3, -4,...,
but quasi random 0, -1, 0, -2, -1, 0, 0

    Csaba




_______________________________________________
bug-lilypond mailing list
bug-lilypond@...
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Re: Problem with rendering chords + lyrics at the same time in 2.13.6-1

by Bugzilla from cskarai@freemail.hu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Checked and I could reproduce the bug even after inserting lots of "\break"-s.

If I have time I'll install Lilypond trunk and check what the problem is.
It's quite important for me to get this issue fixed.

    Csaba



_______________________________________________
bug-lilypond mailing list
bug-lilypond@...
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Re: Problem with rendering chords + lyrics at the same time in 2.13.6-1

by Patrick McCarty-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Oct 28, 2009 at 12:12 AM, Karai Csaba <cskarai@...> wrote:
> Checked and I could reproduce the bug even after inserting lots of "\break"-s.
>
> If I have time I'll install Lilypond trunk and check what the problem is.
> It's quite important for me to get this issue fixed.

In this case, it's probably best to determine when the problem was introduced.

I tested your example in 2.13.3, and the spacing is normal (...well,
like it is in 2.12.* at least).  In 2.13.4, it is not.  The vertical
spacing code was rewritten between 2.13.3 and 2.13.4, so this is
likely a bug related to the spacing changes.


-Patrick


_______________________________________________
bug-lilypond mailing list
bug-lilypond@...
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Re: Problem with rendering chords + lyrics at the same time in 2.13.6-1

by Bugzilla from cskarai@freemail.hu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

It seems, that it would take too much time for me to understand how lilypond +
SCM works, so I can't send a patch how to fix it.

I've compared 2.13.3 and 2.13.4, but I couldn't figure out where the problem was.

Would it be possible to reopen 873 not to forget this bug?

Thanks,

    Csaba



_______________________________________________
bug-lilypond mailing list
bug-lilypond@...
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Re: Problem with rendering chords + lyrics at the same time in 2.13.6-1

by James Bailey-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 31.10.2009, at 08:58, Karai Csaba wrote:

> Hi,
>
> It seems, that it would take too much time for me to understand how  
> lilypond +
> SCM works, so I can't send a patch how to fix it.
>
> I've compared 2.13.3 and 2.13.4, but I couldn't figure out where  
> the problem was.
>
> Would it be possible to reopen 873 not to forget this bug?
>
> Thanks,
>
>     Csaba
>

If you can send a minimal example (a measure or two is usually  
sufficient) showing the problem, then we could re-open the issue. As  
it is, there is little likelihood someone will take the time to comb  
through your piece to identify what the problem is.

James E. Bailey



_______________________________________________
bug-lilypond mailing list
bug-lilypond@...
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Re: Problem with rendering chords + lyrics at the same time in 2.13.6-1

by Bugzilla from cskarai@freemail.hu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>Hi,

I've played a little bit with it, minimal sample is below.
I guess that the problem is related to stemDown.

- the minimal sample is wrongly rendered because of b4 (stemDown)
- change b4 -> to a4, the sample is rendered well (stemUp)
- add \stemDown to a4 -> the stems are down now -> rendering problem
- change back a4 -> b4, change \stemDown->\stemUp,
  the sample is rendered well

That's why I think, that the problem is with the stems.

Thanks,

    Csaba

Minimal sample:
================

\paper {
  indent = 0\mm
  paper-width =  58\mm
  paper-height =  67\mm
  top-margin = 0\mm
  bottom-margin = 0\mm
  left-margin = 0\mm
  right-margin = 0\mm
}

#(set-global-staff-size 16)

\version "2.13.6"

\score {
  <<
    \chords
    {
      d2 d d d d d
    }
    \relative c''
    {
      \key d \major
      b4 b4 b4 b4 b4 b4 b4 b4
      b4 b4 b4 b4
    }
    \addlyrics {
      word word word word word word word word
    }
  >>
}



James E. Bailey írta:

>
> On 31.10.2009, at 08:58, Karai Csaba wrote:
>
>> Hi,
>>
>> It seems, that it would take too much time for me to understand how
>> lilypond +
>> SCM works, so I can't send a patch how to fix it.
>>
>> I've compared 2.13.3 and 2.13.4, but I couldn't figure out where the
>> problem was.
>>
>> Would it be possible to reopen 873 not to forget this bug?
>>
>> Thanks,
>>
>>     Csaba
>>
>
> If you can send a minimal example (a measure or two is usually
> sufficient) showing the problem, then we could re-open the issue. As it
> is, there is little likelihood someone will take the time to comb
> through your piece to identify what the problem is.
>
> James E. Bailey
>
>
>



_______________________________________________
bug-lilypond mailing list
bug-lilypond@...
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Re: Problem with rendering chords + lyrics at the same time in 2.13.6-1

by Bugzilla from cskarai@freemail.hu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>Hi,

I've played a little bit with lilypond, minimal sample is below.
I guess that the problem is somehow related to stemDown.

- the minimal sample is wrongly rendered because of b4 (stemDown)
- change b4 -> to a4, the sample is rendered well (stemUp)
- add \stemDown to a4 -> rendering problem
- change back a4 -> b4, change \stemDown->\stemUp, all is rendered well
- lyrics are required, otherwise you can't reproduce the bug

Thanks,

    Csaba


Minimal sample:
================

\paper {
  indent = 0\mm
  paper-width =  58\mm
  paper-height =  67\mm
  top-margin = 0\mm
  bottom-margin = 0\mm
  left-margin = 0\mm
  right-margin = 0\mm
}

#(set-global-staff-size 16)

\version "2.13.6"

\score {
  <<
    \chords
    {
      d2 d d d d d
    }
    \relative c''
    {
      \key d \major
      b4 b4 b4 b4 b4 b4 b4 b4
      b4 b4 b4 b4
    }
    \addlyrics {
      word word word word word word word word
    }
  >>
}




_______________________________________________
bug-lilypond mailing list
bug-lilypond@...
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Re: Problem with rendering chords + lyrics at the same time in 2.13.6-1

by Valentin Villenave :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Oct 31, 2009 at 9:27 PM, Karai Csaba <cskarai@...> wrote:
> I guess that the problem is related to stemDown.

Perhaps, but you should not have to use \stemUp everywhere just to
prevent a bug from happening! :)

Anyway, added as http://code.google.com/p/lilypond/issues/detail?id=900

Thanks,
Valentin


_______________________________________________
bug-lilypond mailing list
bug-lilypond@...
http://lists.gnu.org/mailman/listinfo/bug-lilypond