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

Issue 196260043: Issue 2535: Staccato on stem side alignment when other articulations are present

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 3 months ago by david.nalesnik
Modified:
9 years, 3 months ago
Reviewers:
dak, lemzwerg
CC:
lilypond-devel_gnu.org
Base URL:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Visibility:
Public.

Description

Issue 2535: Staccato on stem side alignment when other articulations are present The default positioning of staccato dots in combination with other articulations is poor, because the dot is positioned midway between the center of the note head and the stem, while all other scripts are centered on the note head. A mechanism is needed to allow a staccato dot to be positioned differently when alone and when in combination with other articulations. The property 'toward-stem-shift controls the alignment of scripts appearing on the side of the stem. This patch changes the type of 'toward-stem-shift to number-pair rather than number. The first member of the pair indicates the shift when alone, the second the shift when the script is contained by a ScriptColumn object. The vast majority of articulations default to '(0.0 . 0.0), indicating that they are always centered above the note head when on the stem side. Three articulations--staccato, staccatissimo, and stopped--are set to '(1.0 . 0.0), either directly above the stem or centered on the note head, ensuring that combinations like accent-staccato will be properly aligned by default. The previous default of 0.5 for staccato has been modified, in accordance with Gould's recommendation. In order to allow a script to recognize the column organizing it, a pointer to ScriptColumn, called 'script-column, has been added to script-interface.

Patch Set 1 #

Patch Set 2 : new property #

Total comments: 4

Patch Set 3 : revert punctuation fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -16 lines) Patch
M input/regression/script-shift.ly View 1 chunk +5 lines, -5 lines 0 comments Download
A input/regression/script-shift-staccato.ly View 1 chunk +29 lines, -0 lines 0 comments Download
M lily/script-column.cc View 1 chunk +1 line, -0 lines 0 comments Download
M lily/script-interface.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M scm/define-grob-properties.scm View 2 chunks +11 lines, -4 lines 0 comments Download
M scm/output-lib.scm View 1 chunk +8 lines, -5 lines 0 comments Download
M scm/script.scm View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 16
david.nalesnik
Please review.
9 years, 3 months ago (2015-01-27 00:03:19 UTC) #1
lemzwerg
LGTM, thanks!
9 years, 3 months ago (2015-01-27 00:33:57 UTC) #2
dak
It seems to me like this number-pair consists of two settings that would almost always ...
9 years, 3 months ago (2015-01-27 07:26:53 UTC) #3
dak
Aaaand another thought: wouldn't it make more sense instead of having independent shifts for "with ...
9 years, 3 months ago (2015-01-27 07:32:24 UTC) #4
lemzwerg
On 2015/01/27 07:26:53, dak wrote: > It seems to me like this number-pair consists of ...
9 years, 3 months ago (2015-01-27 07:52:05 UTC) #5
dak
On 2015/01/27 07:52:05, lemzwerg wrote: > On 2015/01/27 07:26:53, dak wrote: > > It seems ...
9 years, 3 months ago (2015-01-27 08:50:36 UTC) #6
david.nalesnik
On 2015/01/27 07:32:24, dak wrote: > Aaaand another thought: wouldn't it make more sense instead ...
9 years, 3 months ago (2015-01-27 14:20:20 UTC) #7
david.nalesnik
On 2015/01/27 08:50:36, dak wrote: > On 2015/01/27 07:52:05, lemzwerg wrote: > > On 2015/01/27 ...
9 years, 3 months ago (2015-01-27 14:37:27 UTC) #8
david.nalesnik
Eek. Sorry for overquoting.
9 years, 3 months ago (2015-01-27 14:38:30 UTC) #9
dak
On 2015/01/27 14:37:27, david.nalesnik wrote: > What would this property be named? snap-to-column? shift-in-column? I ...
9 years, 3 months ago (2015-01-27 15:07:24 UTC) #10
david.nalesnik
On 2015/01/27 15:07:24, dak wrote: > On 2015/01/27 14:37:27, david.nalesnik wrote: > > > What ...
9 years, 3 months ago (2015-01-27 16:14:55 UTC) #11
lemzwerg
LGTM. https://codereview.appspot.com/196260043/diff/20001/input/regression/script-shift.ly File input/regression/script-shift.ly (right): https://codereview.appspot.com/196260043/diff/20001/input/regression/script-shift.ly#newcode6 input/regression/script-shift.ly:6: means centered on the stem.) The old code ...
9 years, 3 months ago (2015-01-27 20:43:56 UTC) #12
david.nalesnik
https://codereview.appspot.com/196260043/diff/20001/input/regression/script-shift.ly File input/regression/script-shift.ly (right): https://codereview.appspot.com/196260043/diff/20001/input/regression/script-shift.ly#newcode6 input/regression/script-shift.ly:6: means centered on the stem.) On 2015/01/27 20:43:56, lemzwerg ...
9 years, 3 months ago (2015-01-27 20:48:14 UTC) #13
lemzwerg
https://codereview.appspot.com/196260043/diff/20001/input/regression/script-shift.ly File input/regression/script-shift.ly (right): https://codereview.appspot.com/196260043/diff/20001/input/regression/script-shift.ly#newcode6 input/regression/script-shift.ly:6: means centered on the stem.) > I'm going by ...
9 years, 3 months ago (2015-01-27 22:00:49 UTC) #14
david.nalesnik
On 2015/01/27 22:00:49, lemzwerg wrote: > https://codereview.appspot.com/196260043/diff/20001/input/regression/script-shift.ly > File input/regression/script-shift.ly (right): > > https://codereview.appspot.com/196260043/diff/20001/input/regression/script-shift.ly#newcode6 > ...
9 years, 3 months ago (2015-01-27 22:46:15 UTC) #15
david.nalesnik
9 years, 3 months ago (2015-01-29 17:47:05 UTC) #16
https://codereview.appspot.com/196260043/diff/20001/input/regression/script-s...
File input/regression/script-shift.ly (right):

https://codereview.appspot.com/196260043/diff/20001/input/regression/script-s...
input/regression/script-shift.ly:6: means centered on the stem.)
On 2015/01/27 22:00:49, lemzwerg wrote:
> > I'm going by the American practice that the period goes
> > inside the parentheses if the parentheses enclose the
> > sentence, outside if the sentence begins outside
> > the parentheses.  I'm happy to change it back though--it's
> > kind of pedantic of me!
> 
> I fully agree with what you say, however, parentheses do *not* enclose a full
> sentence here (contrary to another place of the patch).

Done.
Sign in to reply to this message.

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