Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(187)

Issue 28052: Fix lyric extenders to end properly when there are notes but no more lyrics. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 2 months ago by csnyder
Modified:
14 years, 9 months ago
Reviewers:
joeneeman
Visibility:
Public.

Description

Fix lyric extenders to end properly when there are notes but no more lyrics. As I understand it, the current extender code only ends extenders when the next lyric is encountered. This can lead to issues when there are additional notes, but no more lyrics (I encountered this case when I needed to add a few lyrics where rhythms diverged in a divisi part). This patch adds a check to see if a melisma is ending, completetizing the extender if appropriate. This has solved the issue I was encountering, and the regression-test turned up no regressions. A test-case with before-and-after output is available at the following URL: http://temp.mvpsoft.com/ly/lyric_extender/ This also seems related to Issue #331, which mentions a similar problem. When I tried the test-case included there, however, it produced correct output with and without this patch.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Code style fixes #

Patch Set 3 : Added regression test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -0 lines) Patch
A input/regression/lyric-extender-completion.ly View 1 chunk +21 lines, -0 lines 0 comments Download
M lily/extender-engraver.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 3
joeneeman
Here are some code-style nitpicks. Also, please add a regression test that demonstrates the change ...
15 years, 2 months ago (2009-03-16 22:02:55 UTC) #1
csnyder
On 2009/03/16 22:02:55, joeneeman wrote: > Here are some code-style nitpicks. Fixed (though the rest ...
15 years, 2 months ago (2009-03-16 23:32:20 UTC) #2
joeneeman
15 years, 2 months ago (2009-03-17 00:05:17 UTC) #3
On 2009/03/16 23:32:20, csnyder wrote:
> On 2009/03/16 22:02:55, joeneeman wrote:
> > Here are some code-style nitpicks.
> 
> Fixed (though the rest of the file is still quite messy).

Sure, but there's no point making it worse :)

> > Also, please add a regression test that demonstrates the change (a > minimal
> example, smaller than the one you placed on your website).
> 
> Done (though the difference in the extender line length wasn't enough to cross
> the distance threshold in the regression-test).

The regression testing uses ratios between areas, which doesn't seem to work
well for very thin and elongated symbols. I'll see if something can be done.

If no one else comments, I'll push this in a day or so. For future reference,
btw, please include lilypond-devel@gnu.org in the CC list of issues so that
these discussions are more visible.

Thanks for the patch,
Joe
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b