[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tuplet number direction
From: |
Richard Shann |
Subject: |
Re: Tuplet number direction |
Date: |
Wed, 13 Apr 2016 11:15:36 +0100 |
On Wed, 2016-04-13 at 11:00 +0100, Phil Holmes wrote:
> ----- Original Message -----
> From: "Richard Shann" <address@hidden>
> To: <address@hidden>
> Sent: Wednesday, April 13, 2016 10:37 AM
> Subject: Tuplet number direction
>
>
> >I wonder if someone could illuminate the tuplet direction property - I
> > wanted to put the tuplet number above rather than below and looked up:
> >
> > http://lilypond.org/doc/v2.18/Documentation/internals/tupletnumber
> >
> > direction (direction):
> >
> > tuplet-number::calc-direction
> >
> > If side-axis is 0 (or X), then this property determines whether the
> > object is placed LEFT, CENTER or RIGHT with respect to the other object.
> > Otherwise, it determines whether the object is placed UP, CENTER or
> > DOWN. Numerical values may also be used: UP=1, DOWN=-1, LEFT=-1,
> > RIGHT=1, CENTER=0.
> >
> > from this I tried
> >
> > \override TupletBracket #'tuplet-number::calc-direction = #UP (WRONG)
> >
> > which (having stared at LilyPond syntax over the years) looked fishy and
> > indeed did not work. So I resorted to stabbing in the dark:
> >
> >
> > \override TupletBracket #'direction = #UP
> >
> > which does work. I wonder if some words of wisdom could help me and
> > others to go more directly to the answer in this (and other?) case(s).
> >
> > Richard
>
>
> I'm not an expert in the internals, but it looks to me that the IR lists the
> properties with below the property, a default. Thus the default font-shape
> is 'italic, and the default direction is given by
> tuplet-number::calc-direction. Direction has an argument of (direction) and
> it therefore expects a direction as the argument. In this case, #UP is a
> possible argument.
Ah, yes! that fits with the
font-shape (symbol):
'italic
entry, since tuplet numbers are usually in italics.
I think it would help to have the format of this information
(property-name default value ...) somewhere easily visible (e.g. an
"explain" link on the top of each box or headings or ...)
Thank you very much I feel that information may stick.
Richard
- Re: Tuplet number direction, (continued)
- Re: Tuplet number direction, David Wright, 2016/04/16
- Re: Tuplet number direction, David Kastrup, 2016/04/17
- Re: Tuplet number direction, Werner LEMBERG, 2016/04/15
- Re: Tuplet number direction, Thomas Morley, 2016/04/15
- Re: Tuplet number direction, Werner LEMBERG, 2016/04/15
Re: Tuplet number direction, Phil Holmes, 2016/04/13
- Re: Tuplet number direction,
Richard Shann <=