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

Issue 108280044: Issue 2462: don't change ideal spacing when adding a rod (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 10 months ago by janek
Modified:
9 years, 9 months ago
Reviewers:
Keith, franio.kropka.b
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

When objects like lyrics are added to the PaperColumns, LilyPond inserts rods between these columns to ensure that the objects won't overlap. However, the ideal distance should remain unchanged. For example, in \layout { ragged-right = ##f } \relative f' { \repeat unfold 8 a4 } \addlyrics { \repeat unfold 4 la \repeat unfold 4 straight } notes in 2nd measure have long lyrics attached to them - min_distance_ of the springs between these columns should be adjusted, but distance_ (the ideal distance) should not: it should be the same as for notes with short lyrics. When the line is stretched so much that the minimum distances are not involved, the springs between notes in both measures should behave (almost) identical.

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -1 line) Patch
M lily/spring.cc View 1 chunk +0 lines, -1 line 5 comments Download

Messages

Total messages: 10
Keith
This does make sense, but if you change the basic rules of a Spring (allowing ...
9 years, 10 months ago (2014-07-03 04:42:48 UTC) #1
janek
Updated description. On 2014/07/03 04:42:48, Keith wrote: > This does make sense, but if you ...
9 years, 10 months ago (2014-07-03 06:56:20 UTC) #2
Keith
On Wed, 02 Jul 2014 23:56:20 -0700, <janek.lilypond@gmail.com> wrote: >> you should try >> to ...
9 years, 10 months ago (2014-07-04 07:07:42 UTC) #3
janek
Hi Keith, 2014-07-04 9:07 GMT+02:00 Keith OHara <k-ohara5a5a@oco.net>: > On Wed, 02 Jul 2014 23:56:20 ...
9 years, 10 months ago (2014-07-04 21:27:04 UTC) #4
janek
I'm sorry, i mistakenly clicked "send" too early... 2014-07-04 23:26 GMT+02:00 Janek Warchoł <janek.lilypond@gmail.com>: > ...
9 years, 10 months ago (2014-07-04 21:38:49 UTC) #5
Keith
On Fri, 04 Jul 2014 14:38:19 -0700, Janek Warchoł <janek.lilypond@gmail.com> wrote: > 2014-07-04 23:26 GMT+02:00 ...
9 years, 10 months ago (2014-07-05 17:46:46 UTC) #6
janek
Hi, sorry for delayed reply - i had a busy weekend (been on a wedding!) ...
9 years, 9 months ago (2014-07-07 10:21:42 UTC) #7
Keith
On 2014/07/07 10:21:42, janek wrote: > ok - this looks like a good path to ...
9 years, 9 months ago (2014-07-07 15:17:49 UTC) #8
janek
2014-07-07 17:17 GMT+02:00 <k-ohara5a5a@oco.net>: > On 2014/07/07 10:21:42, janek wrote: >> >> ok - this ...
9 years, 9 months ago (2014-07-07 16:31:43 UTC) #9
janek
9 years, 9 months ago (2014-07-11 06:40:39 UTC) #10
Thanks for review! Pushed as

commit ab6842155a003ba7d9243507594e3e973ebbb3e4
Author: Janek Warchoł <lemniskata.bernoullego@gmail.com>
Date:   Mon Jun 30 22:14:16 2014 +0200

     Issue 2462 : don't change ideal spacing when adding a rod
    
    When objects like lyrics are added to the PaperColumns, LilyPond inserts
    rods between these columns to ensure that the objects won't overlap.
    However, the ideal distance should remain unchanged.  For example, in
    
    \layout {
      ragged-right = ##f
    }
    \relative f' { \repeat unfold 8 a4 }
    \addlyrics { \repeat unfold 4 la \repeat unfold 4 straight }
    
    notes in 2nd measure have long lyrics attached to them - min_distance_
    of the springs between these columns should be adjusted, but distance_
    (the ideal distance) should not: it should be the same as for notes
    with short lyrics.  When the line is stretched so much that the minimum
    distances are not involved, the springs between notes in both measures
    should behave (almost) identical.
    
    Note that there are more such problems in the springs code, for example
    in merge_springs.  The code should be rewritten, but that's not trivial.
    Since this one-liner fixes some instances of the problem without any bad
    side-effects, it makes sense to include it separately.


I have opened https://code.google.com/p/lilypond/issues/detail?id=4006 for the
remainder of the spring code problems.
Sign in to reply to this message.

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