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

Issue 270640043: Implement make-bow-stencil, make-tie-stencil for use in markup-commands undertie and overtie (Closed)

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

Description

Implement make-bow-stencil, make-tie-stencil for use in markup-commands undertie and overtie issue 3088 In a follow up it is planned to replace make-parenthesis-stencil with an appropiate setting of make-bow-stencil and to partially rework the parenthesize-markup-command

Patch Set 1 #

Total comments: 16

Patch Set 2 : fix typos and oversights #

Total comments: 7

Patch Set 3 : David's comments and other small rework #

Total comments: 3

Patch Set 4 : clean up/rework based on latest discussion #

Total comments: 3

Patch Set 5 : make under/overtie robust against direction-modifiers, better foolproof for bow-stencil, more clean… #

Patch Set 6 : let over/undertie call an internal procedure #

Total comments: 2

Patch Set 7 : let under- and overtie rely on the generic tie-markup-command #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -0 lines) Patch
M Documentation/changes.tely View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
M scm/define-markup-commands.scm View 1 2 3 4 5 6 1 chunk +89 lines, -0 lines 0 comments Download
M scm/stencil.scm View 1 2 3 4 6 1 chunk +95 lines, -0 lines 0 comments Download

Messages

Total messages: 30
thomasmorley651
please review
8 years, 5 months ago (2015-11-04 00:14:33 UTC) #1
simon.albrecht
Man, sorry, while not being up to your coding skills, I can make nitpicks… https://codereview.appspot.com/270640043/diff/1/scm/stencil.scm ...
8 years, 5 months ago (2015-11-04 00:28:27 UTC) #2
thomasmorley651
fix typos and oversights
8 years, 5 months ago (2015-11-04 21:26:33 UTC) #3
thomasmorley651
thanks for review https://codereview.appspot.com/270640043/diff/1/scm/stencil.scm File scm/stencil.scm (right): https://codereview.appspot.com/270640043/diff/1/scm/stencil.scm#newcode50 scm/stencil.scm:50: @var{bow-height} determines the heigth of the ...
8 years, 5 months ago (2015-11-04 21:27:33 UTC) #4
dak
https://codereview.appspot.com/270640043/diff/20001/scm/stencil.scm File scm/stencil.scm (right): https://codereview.appspot.com/270640043/diff/20001/scm/stencil.scm#newcode76 scm/stencil.scm:76: (cons 0 0)) Why not '(0 . 0) here? ...
8 years, 5 months ago (2015-11-08 21:22:04 UTC) #5
thomasmorley651
https://codereview.appspot.com/270640043/diff/20001/scm/stencil.scm File scm/stencil.scm (right): https://codereview.appspot.com/270640043/diff/20001/scm/stencil.scm#newcode88 scm/stencil.scm:88: (sqrt (+ (* width width) (* height height)))) On ...
8 years, 5 months ago (2015-11-08 23:22:51 UTC) #6
dak
On 2015/11/08 23:22:51, thomasmorley651 wrote: > https://codereview.appspot.com/270640043/diff/20001/scm/stencil.scm > File scm/stencil.scm (right): > > https://codereview.appspot.com/270640043/diff/20001/scm/stencil.scm#newcode88 > ...
8 years, 5 months ago (2015-11-08 23:54:37 UTC) #7
thomasmorley651
David's comments and other small rework
8 years, 5 months ago (2015-11-10 20:30:12 UTC) #8
thomasmorley651
On 2015/11/08 23:54:37, dak wrote: > On 2015/11/08 23:22:51, thomasmorley651 wrote: > > https://codereview.appspot.com/270640043/diff/20001/scm/stencil.scm > ...
8 years, 5 months ago (2015-11-10 20:34:23 UTC) #9
dak
https://codereview.appspot.com/270640043/diff/40001/scm/stencil.scm File scm/stencil.scm (right): https://codereview.appspot.com/270640043/diff/40001/scm/stencil.scm#newcode73 scm/stencil.scm:73: (width (- (car stop) (car start))) I'd not use ...
8 years, 5 months ago (2015-11-10 20:52:18 UTC) #10
thomasmorley651
On 2015/11/10 20:52:18, dak wrote: > https://codereview.appspot.com/270640043/diff/40001/scm/stencil.scm > File scm/stencil.scm (right): > > https://codereview.appspot.com/270640043/diff/40001/scm/stencil.scm#newcode73 > ...
8 years, 5 months ago (2015-11-11 09:56:16 UTC) #11
dak
On 2015/11/11 09:56:16, thomasmorley651 wrote: > Well, outer/inner-control rely on the user-settable variables bow-height and ...
8 years, 5 months ago (2015-11-12 15:20:51 UTC) #12
thomasmorley651
clean up/rework based on latest discussion
8 years, 5 months ago (2015-11-13 21:23:34 UTC) #13
thomasmorley651
On 2015/11/12 15:20:51, dak wrote: > On 2015/11/11 09:56:16, thomasmorley651 wrote: > > > Well, ...
8 years, 5 months ago (2015-11-13 21:31:31 UTC) #14
dak
Sorry for yet finding more stuff that, after all, could likely be improved. At least ...
8 years, 5 months ago (2015-11-13 21:51:19 UTC) #15
thomasmorley651
On 2015/11/13 21:51:19, dak wrote: > Sorry for yet finding more stuff that, after all, ...
8 years, 5 months ago (2015-11-13 22:38:02 UTC) #16
dak
Aaand another one. https://codereview.appspot.com/270640043/diff/60001/scm/stencil.scm File scm/stencil.scm (right): https://codereview.appspot.com/270640043/diff/60001/scm/stencil.scm#newcode66 scm/stencil.scm:66: (if (equal? start stop) I think ...
8 years, 5 months ago (2015-11-13 23:01:39 UTC) #17
thomasmorley651
On 2015/11/13 22:38:02, thomasmorley651 wrote: > On 2015/11/13 21:51:19, dak wrote: > > Sorry for ...
8 years, 5 months ago (2015-11-13 23:13:21 UTC) #18
thomasmorley651
On 2015/11/13 23:01:39, dak wrote: > Aaand another one. > > https://codereview.appspot.com/270640043/diff/60001/scm/stencil.scm > File scm/stencil.scm ...
8 years, 5 months ago (2015-11-13 23:15:22 UTC) #19
Trevor Daniels
> https://codereview.appspot.com/270640043/diff/60001/scm/define-markup-commands.scm#newcode623 > > > scm/define-markup-commands.scm:623: (direction DOWN) > > > Should this markup command ...
8 years, 5 months ago (2015-11-13 23:37:12 UTC) #20
thomasmorley651
make under/overtie robust against direction-modifiers, better foolproof for bow-stencil, more clean-up
8 years, 5 months ago (2015-11-14 21:22:25 UTC) #21
thomasmorley651
On 2015/11/13 21:51:19, dak wrote: > Sorry for yet finding more stuff that, after all, ...
8 years, 5 months ago (2015-11-14 21:25:11 UTC) #22
thomasmorley651
On 2015/11/13 23:15:22, thomasmorley651 wrote: > On 2015/11/13 23:01:39, dak wrote: > > Aaand another ...
8 years, 5 months ago (2015-11-14 21:25:42 UTC) #23
dak
On 2015/11/14 21:25:11, thomasmorley651 wrote: > On 2015/11/13 21:51:19, dak wrote: > > Sorry for ...
8 years, 5 months ago (2015-11-16 15:57:49 UTC) #24
thomasmorley651
let over/undertie call an internal procedure
8 years, 5 months ago (2015-11-18 22:56:22 UTC) #25
thomasmorley651
On 2015/11/16 15:57:49, dak wrote: > On 2015/11/14 21:25:11, thomasmorley651 wrote: > > On 2015/11/13 ...
8 years, 5 months ago (2015-11-18 23:01:20 UTC) #26
Trevor Daniels
LGTM, apart from an oversight, although this is based on just eye-balling. https://codereview.appspot.com/270640043/diff/100001/scm/define-markup-commands.scm File scm/define-markup-commands.scm ...
8 years, 5 months ago (2015-11-19 15:46:07 UTC) #27
thomasmorley651
let under- and overtie rely on the generic tie-markup-command
8 years, 5 months ago (2015-11-19 21:24:15 UTC) #28
thomasmorley651
On 2015/11/18 23:01:20, thomasmorley651 wrote: > On 2015/11/16 15:57:49, dak wrote: > > If we ...
8 years, 5 months ago (2015-11-19 21:29:41 UTC) #29
thomasmorley651
8 years, 5 months ago (2015-11-19 21:36:51 UTC) #30
On 2015/11/19 21:29:41, thomasmorley651 wrote:
> On 2015/11/18 23:01:20, thomasmorley651 wrote:
> > On 2015/11/16 15:57:49, dak wrote:
> 
> > > If we are sure we'll never need to change the direction based on the
> > > markup direction (like, say, over/under actual note glyphs?), I'd just
> > implement
> > > commands undertie/overtie that call some internal function with the
> direction
> > to
> > > use directly.
> > 
> > Done this way. Right now I can't imagine any use-case for relying on
> > direction-modifiers.
> > If there is use for it sometime in the future we may change this again,
> > ofcourse.
> > 
> > > 
> > > If there may be a use case for inheriting direction, some directable
markup
> > > command may be useful.  Either it is called (with an appropriate explicit
> > > direction override) by undertie/overtie, or all three call the same
internal
> > > function.
> 
> Changed my mind, because I found a not uncommon use-case for a tie-command
> relying on direction-modifiers and \voiceXxx:
> 
> m = {
>   c''1 \prall -\tweak text \markup \tie "131" -1
> }
> 
> { \voiceOne \m \voiceTwo \m }

see png on the tracker
https://sourceforge.net/p/testlilyissues/issues/3088/?page=2

> 
> This is used in scores for guitar quite often and I seem to remember having
seen
> similiar in piano-scores indicating silent finger changes.
> 
> @James
> sorry for the additional work
Sign in to reply to this message.

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