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 <rich...@rshann.plus.com>
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
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to