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

Issue 271680043: Add and use note-collision-threshold grob property (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 4 months ago by pwm
Modified:
8 years, 4 months ago
Reviewers:
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Add and use note-collision-threshold grob property Includes a regression test.

Patch Set 1 #

Patch Set 2 : small improvement in stem.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -7 lines) Patch
A input/regression/note-collision-threshold.ly View 1 chunk +46 lines, -0 lines 0 comments Download
M lily/note-collision.cc View 5 chunks +9 lines, -6 lines 0 comments Download
M lily/stem.cc View 1 3 chunks +3 lines, -1 line 0 comments Download
M scm/define-grob-properties.scm View 1 chunk +5 lines, -0 lines 0 comments Download
M scm/define-grobs.scm View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 2
pwm
small improvement in stem.cc
8 years, 4 months ago (2015-12-04 21:23:51 UTC) #1
pwm
8 years, 4 months ago (2015-12-04 21:43:27 UTC) #2
Please review, thanks.

When StaffSymbol.staff-space is overridden to a value less than 1, collisions
can occur between simultaneous notes that are more than one staff space apart.  

This patch introduces a property "note-collision-threshold" that makes it
possible to prevent this.  By setting this property to 2 or more, LilyPond will
identify notes 2 or more staff positions apart as collisions and move the notes
accordingly to prevent them.

Basically, this patch un-hard-codes the assumption that collisions only occur
when simultaneous notes are 1 staff space apart and allows the user to override
this threshold with a different value when that is needed.

See regtest for an example of use.

-Paul
Sign in to reply to this message.

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