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

Issue 41099: Improve implementation of dashed slurs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years ago by Carl
Modified:
14 years, 9 months ago
Reviewers:
joeneeman, Neil Puttock
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Improve implementation of dashed slurs Update dashed slurs to have variable thickness. Dashed slurs are now written as bezier sandwiches, like regular slurs. Moved dash-period and dash-fraction from properties for slurs, phrasingSlurs, and ties. Created new property dash-definition that contains a list of dash-descriptions for each segment of the slur, phrasingSlur, and tie. Defined new commands \slurHalfDashed, \slurHalfSolid, \phrasingSlurHalfDashed, \phrasingSlurHalfSolid, \tieHalfDashed, tieHalfSolid. Defined new commands \slurDashPattern, \phrasingSlurDashPattern, and \tieDashPattern. Changed bezier-sandwich interface to include thickness parameter that is used for slurs. This required changes to vaticana=ligature. Added extract and split to Bezier class. Adjusted header files to reflect new calling lists. arpeggio.cc is changed because there is a slur-arpeggio type. Adjusted documentation to reflect changes.

Patch Set 1 #

Patch Set 2 : Revised dashed-slur implementation #

Patch Set 3 : Revised and improved patch -- eliminates broken code #

Patch Set 4 : Revised to include regression tests #

Total comments: 24
Unified diffs Side-by-side diffs Delta from patch set Stats (+419 lines, -129 lines) Patch
M Documentation/user/expressive.itely View 8 chunks +85 lines, -7 lines 1 comment Download
M Documentation/user/rhythms.itely View 4 chunks +37 lines, -4 lines 0 comments Download
A input/new/making-slurs-with-complex-dash-structure.ly View 1 chunk +37 lines, -0 lines 2 comments Download
M input/regression/phrasing-slur-dash.ly View 2 chunks +10 lines, -3 lines 0 comments Download
M input/regression/slur-dash.ly View 2 chunks +15 lines, -8 lines 0 comments Download
A input/regression/tie-dash.ly View 1 chunk +33 lines, -0 lines 0 comments Download
M lily/arpeggio.cc View 1 chunk +1 line, -1 line 1 comment Download
M lily/bezier.cc View 1 chunk +50 lines, -0 lines 7 comments Download
M lily/include/bezier.hh View 1 chunk +2 lines, -0 lines 0 comments Download
M lily/include/lookup.hh View 1 chunk +4 lines, -3 lines 0 comments Download
M lily/lookup.cc View 5 chunks +60 lines, -54 lines 9 comments Download
M lily/slur.cc View 2 chunks +6 lines, -11 lines 0 comments Download
M lily/tie.cc View 2 chunks +6 lines, -13 lines 0 comments Download
M lily/vaticana-ligature.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ly/property-init.ly View 2 chunks +61 lines, -21 lines 2 comments Download
M python/convertrules.py View 1 chunk +6 lines, -1 line 1 comment Download
M scm/define-grob-properties.scm View 1 chunk +3 lines, -0 lines 1 comment Download

Messages

Total messages: 2
Neil Puttock
http://codereview.appspot.com/41099/diff/1021/52 File Documentation/user/expressive.itely (right): http://codereview.appspot.com/41099/diff/1021/52#newcode634 Line 634: @lilypondfile[verbatim,lilyquote,texidoc,doctitle] @ignore this unless you're going to run ...
15 years ago (2009-04-17 19:34:35 UTC) #1
joeneeman
15 years ago (2009-04-17 19:47:12 UTC) #2
Very pretty slurs!

http://codereview.appspot.com/41099/diff/1021/59
File lily/bezier.cc (right):

http://codereview.appspot.com/41099/diff/1021/59#newcode275
Line 275: Bezier::subdivide (Real t, Bezier &left_part, Bezier &right_part)
We only use references if they are const (for clarity), so please change the
arguments to pointers. Also, this function can be marked as const.

http://codereview.appspot.com/41099/diff/1021/59#newcode296
Line 296: Bezier::extract (Real t_min, Real t_max)
const here too

http://codereview.appspot.com/41099/diff/1021/59#newcode302
Line 302: bez2.control_[i] = control_[i];
bez2 = *this

http://codereview.appspot.com/41099/diff/1021/62
File lily/lookup.cc (right):

http://codereview.appspot.com/41099/diff/1021/62#newcode347
Line 347: SCM dash_details)
Since dash_details seems to just be a list of Reals, perhaps its better to have
a vector<Real> const& (with an empty vector to signify a solid slur).
Sign in to reply to this message.

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