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

Issue 11046: Implement straight flags in scheme (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 4 months ago by Reinhold
Modified:
14 years, 9 months ago
Reviewers:
carl.d.sorensen, hanwenn
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Implement straight flags in scheme

Patch Set 1 #

Patch Set 2 : Implement straigt flags, also slashes through grace notes #

Patch Set 3 : Improve straight flags code (Han-Wen's comments, better doc strings, etc.) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -24 lines) Patch
M input/regression/flags-straight.ly View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
A input/regression/flags-straight-stockhausen-boulez.ly View 1 chunk +30 lines, -0 lines 0 comments Download
M scm/flag-styles.scm View 1 2 4 chunks +39 lines, -22 lines 5 comments Download

Messages

Total messages: 4
hanwenn
http://codereview.appspot.com/11046/diff/8/11 File scm/flag-styles.scm (left): http://codereview.appspot.com/11046/diff/8/11#oldcode17 Line 17: ;; (define-public (add-stroke-straight stencil dir stroke-style) drop commented ...
15 years, 4 months ago (2008-12-14 02:44:52 UTC) #1
Carl
Han-Wen, I've asked about a different possibility for doing the conversion. I'd like to know ...
15 years, 4 months ago (2008-12-14 03:36:43 UTC) #2
Reinhold
http://codereview.appspot.com/11046/diff/8/11 File scm/flag-styles.scm (left): http://codereview.appspot.com/11046/diff/8/11#oldcode17 Line 17: ;; (define-public (add-stroke-straight stencil dir stroke-style) On 2008/12/14 ...
15 years, 4 months ago (2008-12-14 12:03:35 UTC) #3
hanwenn
15 years, 4 months ago (2008-12-14 13:09:45 UTC) #4
some small comments, please apply

http://codereview.appspot.com/11046/diff/19/205
File scm/flag-styles.scm (right):

http://codereview.appspot.com/11046/diff/19/205#newcode20
Line 20: Note that here length is the whole length, while flag-x-width is just
the
drop: Note that

http://codereview.appspot.com/11046/diff/19/205#newcode45
Line 45: "Internal function to recursively create a stencil with @code{remain}
flags
Cool. if the function is internal, a single line doc str usually suffices.

http://codereview.appspot.com/11046/diff/19/205#newcode64
Line 64: (stem-up? (eqv? dir UP))
ok - as a nitpick, the foo? is usually reserved for functions that return bool,
rather than the variables.  The lilypond code base is not very consistent with
that though.

http://codereview.appspot.com/11046/diff/19/205#newcode67
Line 67: (fs (ly:grob-property stem-grob 'font-size))
you can pass 0 as default arg, so you can put the call into the magstep arg
directly.

http://codereview.appspot.com/11046/diff/19/205#newcode75
Line 75: (down-off (polar->rectangular down-length downflag-angle))
this still looks repeated between up & down. Use

  (flag-length (if flagup? upflag-length downflag-length))

and fold cases.
Sign in to reply to this message.

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