lilypond-user
[Top][All Lists]
Advanced

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

Re: tuplet numbers on kneed beams - David's function stopped working


From: Thomas Morley
Subject: Re: tuplet numbers on kneed beams - David's function stopped working
Date: Tue, 16 Oct 2012 14:09:42 +0200

2012/10/16 David Nalesnik <address@hidden>:
> Hi Janek,
>
>>> David Nalesnik's function correcting tuplet number placement on kneed
>>> beams throws an error with Lilypond 2.17.5 (it works with 2.16.0):
>>>
>>> Drawing systems.../home/janek/desk/tuplet_numers_on_kneed_beams.ily:44:26:
>>> In procedure * in expression (* 0.5 (ly:grob-property beam #)):
>>> /home/janek/desk/tuplet_numers_on_kneed_beams.ily:44:26: Wrong type: ()
>>>
>>> line 44 reads:
>>> (beam-gap (* 0.5 (ly:grob-property beam 'gap)))
>
>
> Checking the Internals Reference, it looks like 'gap has been renamed
> 'beam-gap, so changing that line should fix the problem.
>
> -David

Hi David,

'beam-gap is now a pair.
So I'm not sure if it should be
(car (ly:grob-property grob 'beam-gap))
or
(interval-length (ly:grob-property grob 'beam-gap))

Currently I haven't found a proper documentation:

git grep beam-gap

Documentation/misc/CHANGES-1.3:beams on whole notes.  'beam-gap' had been rename
Documentation/misc/ChangeLog-2.1:       lines for falling into beam-gap.
lily/beam.cc:  Interval gap_lengths = robust_scm2interval (me->get_property ("be
lily/beam.cc:               "beam-gap "
scm/define-grob-properties.scm:     (beam-gap ,number-pair? "Size of a gap in a
scm/define-grobs.scm:   (beam-gap . ,ly:beam::calc-beam-gap)


Quoting "Documentation/misc/CHANGES-1.3":

1.3.153
=======

[...]

* Chord tremolo fixes: shift beams vertically on whole notes.  Center
beams on whole notes.  'beam-gap' had been renamed to 'gap', but only
for reading.

I'm investigating further.


-Harm



reply via email to

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