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

Issue 36830045: note-spacing: stretch somewhat uniformly; issue 3304

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 4 months ago by Keith
Modified:
10 years, 2 months ago
Reviewers:
trevorbaca, MikeSol, mike7, janek
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

1 note-spacing: let compressibility be uniform; issue 3304 Comments implied that half the width of accidentals, etc., was added to the ideal spacing between notes, but in fact only compressibility was affected. The non-uniform compressibility caused note-spacing to become non-uniform when the lines were compressed. For example a sequence {\stemUp a a d a] would have the head of the D tuck under the preceding A. This commit keeps spacing uniform on compressed lines until objects come within padding of each other. input/regression/baerenreiter-sarabande.ly | 7 +++---- input/regression/spanner-alignment.ly | 2 +- lily/include/note-spacing.hh | 2 +- lily/note-spacing.cc | 28 +++++++++------------------- 2 note-spacing: stretch somewhat uniformly Start with a basic spring based on the note duration, and apply optical corrections to that. This results in more consistent springs thus more uniform stretching in polyphonic situations. input/regression/spacing-multi-tuplet.ly | 18 +++----------- lily/include/note-spacing.hh | 2 +- lily/include/spacing-spanner.hh | 2 +- lily/note-spacing.cc | 21 +++++++++-------- lily/spacing-basic.cc | 36 +++++++++++++++++++---------- lily/spacing-determine-loose-columns.cc | 2 +- lily/spacing-loose-columns.cc | 19 +++++---------- lily/spacing-spanner.cc | 26 ++++++--------------- 3 springs: comment and typo lily/spring.cc | 19 ++++++++++++++++++- 4 spacing-options: clarify documentation Documentation/notation/spacing.itely | 3 +-- lily/spacing-options.cc | 11 ++++------- scm/define-grob-properties.scm | 13 ++++++------- 5 ledger-lines: horizontal space only when present lily/ledger-line-spanner.cc | 2 +-

Patch Set 1 #

Patch Set 2 : spread glissando.ly #

Total comments: 1

Patch Set 3 : comment to explain springs #

Patch Set 4 : Let spacing-basic:note_spacing() provide the basic springs #

Patch Set 5 : ledger lines #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -109 lines) Patch
M Documentation/notation/spacing.itely View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M input/regression/baerenreiter-sarabande.ly View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M input/regression/spacing-multi-tuplet.ly View 1 chunk +4 lines, -14 lines 0 comments Download
M input/regression/spanner-alignment.ly View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M lily/include/note-spacing.hh View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M lily/include/spacing-spanner.hh View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M lily/ledger-line-spanner.cc View 1 2 3 4 1 chunk +1 line, -1 line 2 comments Download
M lily/note-spacing.cc View 1 2 3 5 chunks +16 lines, -25 lines 2 comments Download
M lily/spacing-basic.cc View 1 2 3 2 chunks +23 lines, -13 lines 1 comment Download
M lily/spacing-determine-loose-columns.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M lily/spacing-loose-columns.cc View 1 2 3 1 chunk +7 lines, -12 lines 0 comments Download
M lily/spacing-options.cc View 1 2 3 3 chunks +4 lines, -7 lines 0 comments Download
M lily/spacing-spanner.cc View 1 2 3 2 chunks +8 lines, -18 lines 1 comment Download
M lily/spring.cc View 1 2 3 2 chunks +18 lines, -1 line 0 comments Download
M scm/define-grob-properties.scm View 1 2 3 3 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 11
MikeSol
https://codereview.appspot.com/36830045/diff/20001/lily/note-spacing.cc File lily/note-spacing.cc (right): https://codereview.appspot.com/36830045/diff/20001/lily/note-spacing.cc#newcode117 lily/note-spacing.cc:117: ret.set_inverse_stretch_strength (base_space); Looked at it, but I have no ...
10 years, 4 months ago (2013-12-16 07:42:52 UTC) #1
Keith
On 2013/12/16 07:42:52, MikeSol wrote: > If you understand this stuff, could you put a ...
10 years, 4 months ago (2013-12-16 08:24:35 UTC) #2
mike7
On Dec 16, 2013, at 10:24 AM, k-ohara5a5a@oco.net wrote: > Reviewers: MikeSol, > > Message: ...
10 years, 4 months ago (2013-12-16 08:28:48 UTC) #3
trevorbaca_gmail.com
On Mon, Dec 16, 2013 at 2:28 AM, Mike Solomon <mike@mikesolomon.org> wrote: > > On ...
10 years, 4 months ago (2013-12-27 06:47:43 UTC) #4
trevorbaca_gmail.com
On Fri, Dec 27, 2013 at 1:28 AM, Keith OHara <k-ohara5a5a@oco.net> wrote: > On Thu, ...
10 years, 4 months ago (2013-12-27 07:37:09 UTC) #5
janek
https://codereview.appspot.com/36830045/diff/120001/lily/ledger-line-spanner.cc File lily/ledger-line-spanner.cc (right): https://codereview.appspot.com/36830045/diff/120001/lily/ledger-line-spanner.cc#newcode103 lily/ledger-line-spanner.cc:103: if (Staff_symbol::ledger_positions (staff, pos).empty ()) Nice catch! Please add ...
10 years, 4 months ago (2013-12-29 20:59:28 UTC) #6
Keith
https://codereview.appspot.com/36830045/diff/120001/lily/ledger-line-spanner.cc File lily/ledger-line-spanner.cc (right): https://codereview.appspot.com/36830045/diff/120001/lily/ledger-line-spanner.cc#newcode103 lily/ledger-line-spanner.cc:103: if (Staff_symbol::ledger_positions (staff, pos).empty ()) On 2013/12/29 20:59:28, janek ...
10 years, 4 months ago (2013-12-29 21:50:46 UTC) #7
janek
On 2013/12/29 21:50:46, Keith wrote: > https://codereview.appspot.com/36830045/diff/120001/lily/ledger-line-spanner.cc > File lily/ledger-line-spanner.cc (right): > > https://codereview.appspot.com/36830045/diff/120001/lily/ledger-line-spanner.cc#newcode103 > ...
10 years, 4 months ago (2013-12-29 22:58:32 UTC) #8
Keith
On 2013/12/29 22:58:32, janek wrote: > Do you mean that you won't add a regtest ...
10 years, 4 months ago (2013-12-30 00:05:07 UTC) #9
Keith
Forgot to move one magic number in the reorganization. The behavior of the line-breaker is ...
10 years, 2 months ago (2014-02-17 17:54:41 UTC) #10
janek
10 years, 2 months ago (2014-02-22 14:43:17 UTC) #11
2014-02-17 18:54 GMT+01:00  <k-ohara5a5a@oco.net>:
> Forgot to move one magic number in the reorganization.
>
> The behavior of the line-breaker is strange in the presence of
> zero-stretchable lines; maybe the enforcement of minimum stretchability
> should go there instead.
>
>
> https://codereview.appspot.com/36830045/diff/120001/lily/note-spacing.cc
> File lily/note-spacing.cc (left):
>
>
https://codereview.appspot.com/36830045/diff/120001/lily/note-spacing.cc#oldc...
> lily/note-spacing.cc:114: ret.set_inverse_stretch_strength (max (0.1,
> base_space - increment));
> Line-spacing depended on non-zero stretchability, so either line-spacing
> needs an update, or this 0.1 needs to be preserved.
>
> https://codereview.appspot.com/36830045/diff/120001/lily/spacing-basic.cc
> File lily/spacing-basic.cc (right):
>
>
https://codereview.appspot.com/36830045/diff/120001/lily/spacing-basic.cc#new...
> lily/spacing-basic.cc:160: ret.set_inverse_stretch_strength (fraction *
> max (0.0, (len - min)));
> A global minimum stretchability would go here.


From what i see the patch for issue 3868 does exactly this, so i think
this can be considered done.

thanks!
Janek
Sign in to reply to this message.

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