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

Issue 8363044: Fix clef transposition alignment (issue 3186) (Closed)

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

Description

Issue 3186: fix clef transposition alignment Until now, numbers indicating clef transposition (for example in \clef "G_8") were simply centered against the clef glyph. This was not optimal, because clef glyphs aren't symmetrical - for example the hook of the treble clef isn't exactly at its horizontal center, and thus the octavation number shouldn't be exactly centered. This commit allows to specify alignment separately for each clef, taking into account their individual characteristics. Alignments are stored in clef-alignments property.

Patch Set 1 #

Patch Set 2 : this fixes cue clef transposition alignment, but not optional yet #

Patch Set 3 : Use Issue 4022. This should procuduce correct alignment in all cases. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -9 lines) Patch
M input/regression/clef-transposition-placement.ly View 1 2 1 chunk +39 lines, -7 lines 2 comments Download
A lily/clef-modifier.cc View 1 2 1 chunk +70 lines, -0 lines 3 comments Download
M scm/define-grob-interfaces.scm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M scm/define-grob-properties.scm View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M scm/define-grobs.scm View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 8
janek
this fixes cue clef transposition alignment, but not optional yet
11 years ago (2013-04-10 22:17:56 UTC) #1
janek
Use Issue 4022. This should procuduce correct alignment in all cases.
9 years, 8 months ago (2014-08-09 21:07:57 UTC) #2
janek
Please review. Note that the diff between current patchset (#3) and previous one is broken ...
9 years, 8 months ago (2014-08-09 21:12:22 UTC) #3
janek
Pushed as commit 21a1e3b8267fd76ff261ed9f01e833d5d04703e7 Author: Janek Warchoł <lemniskata.bernoullego@gmail.com> Date: Wed Apr 3 21:46:56 2013 +0200 ...
9 years, 8 months ago (2014-08-16 21:51:39 UTC) #4
dak
https://codereview.appspot.com/8363044/diff/6001/input/regression/clef-transposition-placement.ly File input/regression/clef-transposition-placement.ly (right): https://codereview.appspot.com/8363044/diff/6001/input/regression/clef-transposition-placement.ly#newcode21 input/regression/clef-transposition-placement.ly:21: \override Staff.Clef.full-size-change = ##t This syntax is not version ...
9 years, 8 months ago (2014-08-16 22:23:38 UTC) #5
janek
https://codereview.appspot.com/8363044/diff/6001/input/regression/clef-transposition-placement.ly File input/regression/clef-transposition-placement.ly (right): https://codereview.appspot.com/8363044/diff/6001/input/regression/clef-transposition-placement.ly#newcode21 input/regression/clef-transposition-placement.ly:21: \override Staff.Clef.full-size-change = ##t On 2014/08/16 22:23:38, dak wrote: ...
9 years, 8 months ago (2014-08-17 12:58:28 UTC) #6
dak
On 2014/08/17 12:58:28, janek wrote: > https://codereview.appspot.com/8363044/diff/6001/input/regression/clef-transposition-placement.ly > File input/regression/clef-transposition-placement.ly (right): > > https://codereview.appspot.com/8363044/diff/6001/input/regression/clef-transposition-placement.ly#newcode21 > ...
9 years, 8 months ago (2014-08-17 13:14:18 UTC) #7
Keith
9 years, 8 months ago (2014-08-18 06:24:20 UTC) #8
Message was sent while issue was closed.
https://codereview.appspot.com/8363044/diff/6001/lily/clef-modifier.cc
File lily/clef-modifier.cc (right):

https://codereview.appspot.com/8363044/diff/6001/lily/clef-modifier.cc#newcode42
lily/clef-modifier.cc:42: me->get_property ("clef-alignments"));
On 2014/08/16 22:23:38, dak wrote:
> Up to this point there is not exactly a fabulous amount of crash-proneness in
> case of non-standard clef layout.  The code does not seem particularly
prepared
> to deal with a clef like varC.
> 
    \override Staff.ClefModifier.clef-alignments.varC = #'(+1 . +1)
    \clef "varC^8"
works for me.

> Why would the table clef-alignments be stored in a context property?  It does
> not seem to be context dependent.

A lot of potentially-overridable layout details are stored in context
properties.
Sign in to reply to this message.

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