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

Issue 7312091: let beam thickness depend on line thickness (fix 3173)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by janek
Modified:
11 years, 1 month ago
Reviewers:
dak, lemzwerg
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

let beam thickness depend on line thickness (fix 3173) One of LilyPond's design principles is "optical sizing" (described in Essay, section Engraving details), which means that as the font-size gets smaller, all elements get relatively thicker. Before now beam-thickness was defined as a fraction of staffSpace, which meant no optical sizing (the thickness of the beam stayed constant relative to the height of the staff). This patch changes beam-thickness property to be a pair of numbers (a . b). The actual thickness is calculated according to the formula a * lineThickness + b * staffSpace (similarly to ledger line thickness).

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -5 lines) Patch
M lily/beam.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M scm/define-grob-properties.scm View 1 chunk +3 lines, -2 lines 2 comments Download
M scm/define-grobs.scm View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3
lemzwerg
LGTM, inspite of the compilation error which I can't explain :-)
11 years, 2 months ago (2013-02-13 06:33:36 UTC) #1
dak
https://codereview.appspot.com/7312091/diff/1/scm/define-grob-properties.scm File scm/define-grob-properties.scm (right): https://codereview.appspot.com/7312091/diff/1/scm/define-grob-properties.scm#newcode93 scm/define-grob-properties.scm:93: (beam-thickness ,number-pair? "Beam thickness. It is the sum You ...
11 years, 2 months ago (2013-02-14 19:43:00 UTC) #2
janek
11 years, 1 month ago (2013-03-19 13:13:20 UTC) #3
Thanks for reviews.  Before i can continue with this patch, i have to
investigate a possible new way of specifying property values (inspired by David
here http://code.google.com/p/lilypond/issues/detail?id=3173#c5)

best,
JAnek

https://codereview.appspot.com/7312091/diff/1/scm/define-grob-properties.scm
File scm/define-grob-properties.scm (right):

https://codereview.appspot.com/7312091/diff/1/scm/define-grob-properties.scm#...
scm/define-grob-properties.scm:93: (beam-thickness ,number-pair? "Beam
thickness.  It is the sum
On 2013/02/14 19:43:00, dak wrote:
> You are confusing "sum" and "pair" in this comment.

You're right, sorry.  I've copied this from the description of
ledger-line-thickness, so that one needs clarifying as well.
Sign in to reply to this message.

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