bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bar number position (direction) numerical definitions overlap


From: Mats Bengtsson
Subject: Re: bar number position (direction) numerical definitions overlap
Date: Fri, 04 Aug 2006 10:39:38 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417

I have submitted the following changes (the numerical values correspond to
the BarNumber object):

|side-axis| (number):
   |1|

If the value is #X (or equivalently 1), the object is placed horizontally next to the other object. If the value is #Y or 0, it is placed vertically.

|direction| (direction):
   |1|

If side-position is #X, then this property determines if the object is placed #LEFT, #CENTER or #RIGHT with respect to the other object. Otherwise, it determines if the object is placed #UP #CENTER or #DOWN. Numerical values may also be used. #UP=1, #DOWN=-1, #LEFT=-1, #RIGHT=1, CENTER=0 but also other numerical values are permitted.


I hope this will make it more clear. Note that printing the relevant interpretation of the default value, such as "1 (#UP)" or "1 (#LEFT)" would be just as difficult (if not more difficult) than being able to handle alternative text strings for the same property in different objects (when I said it was "probably difficult" I
meant "with 99.9% difficult"). ;-)

Note also that you can use
\override Score.BarNumber #'direction = #-2
or
\override Score.BarNumber #'direction = #0.58
if you wish. I tried to clarify that aspect too in the text above.

  /Mats


Paul Scott wrote:

Mats Bengtsson wrote:



Paul Scott wrote:


If it would lead to as much work as you say then at least a verbal description of what direction means should be included as it is for (most?) other properties.


Please go ahead and suggest something, see http://lilypond.org/web/devel/participating/documentation-adding

Not very easy to come with a one size fits all definition but maybe this would be help:

|direction| (direction):
   |1|

A value -1, 0 or 1 meaning whichever of (left, center or right) or (down, center or up) makes sense for this layout object. #LEFT, #CENTER, #RIGHT and #DOWN, #CENTER, #UP may be used instead of the numbers.

I would also suggest adding something to the default values listed under the property name which would give a further hint to the meaning.

For example the property definition for the BarNumber layout object might read:

direction (direction)
1 (#UP)

A value -1, 0 or 1 meaning whichever of (left, center or right) or (down, center or up) makes sense for this layout object. #LEFT=-1, #CENTER=0, #RIGHT=1 and #DOWN=-1, #CENTER=0, #UP=1 may be used instead of the numbers.

Paul




_______________________________________________
bug-lilypond mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-lilypond


--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]