lilypond-user
[Top][All Lists]
Advanced

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

Re: Tuplet number direction


From: Abraham Lee
Subject: Re: Tuplet number direction
Date: Wed, 13 Apr 2016 06:06:13 -0600

Richard, et al,

Many grob properties are given a function (like tuplet-number::calc-direction) rather than a static value (like UP) when the property depends on many factors. In other words, by default, it's as if the 'direction property was set with

\override TupletNumber.direction = #tuplet-number::calc-direction

This function accepts a TupletNumber grob object which is able to provide the information needed for tuplet-number::calc-direction to determine if the value should be UP, DOWN, CENTER, or even something else (like with kneed beams). So, by putting in one of those output values, like

\override TupletNumber.direction = #UP

you are just removing the original function from the loop since you are doing its job.


On Wed, Apr 13, 2016 at 4:17 AM, Richard Shann <address@hidden> wrote:
On Wed, 2016-04-13 at 19:51 +1000, Andrew Bernard wrote:
> Above or below what object?
>
I think the direction of the tuplet bracket and number are calculated
relative to the notes in the tuplet, though whether these constitute a
single object or not, I'm not sure.

Like I said before, the 'direction depends on a handful of things. In any case, no, the number and bracket are NOT a single object. So, say you have a passage of consecutive tuplets and you just want to show a few at the beginning like:

{
  \tuplet 3/2 { c'4 d' e' }  \tuplet 3/2 { c'4 d' e' } |
  \tuplet 3/2 { c'4 d' e' }  \tuplet 3/2 { c'4 d' e' } |
  \tuplet 3/2 { c'4 d' e' }  \tuplet 3/2 { c'4 d' e' } |
  \tuplet 3/2 { c'4 d' e' }  \tuplet 3/2 { c'4 d' e' } |
}


In order to not show BOTH number and bracket, you have to override BOTH, like:

{
  \tuplet 3/2 { c'4 d' e' }  \tuplet 3/2 { c'4 d' e' } |
  \omit TupletNumber
  \omit TupletBracket
  \tuplet 3/2 { c'4_\markup { \italic simile } d' e' } 
    \tuplet 3/2 { c'4 d' e' } |
  \tuplet 3/2 { c'4 d' e' }  \tuplet 3/2 { c'4 d' e' } |
  \tuplet 3/2 { c'4 d' e' }  \tuplet 3/2 { c'4 d' e' } |
}


HTH,
Abraham

reply via email to

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