lilypond-user
[Top][All Lists]
Advanced

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

Re: Beamed Tremolo + Fermata


From: David Kastrup
Subject: Re: Beamed Tremolo + Fermata
Date: Mon, 28 Dec 2015 23:47:25 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> 2015-12-28 20:33 GMT+01:00 tisimst <address@hidden>:
>> Ooooh! I really like this idea as it would solve the horizontally-centered
>> problem, but I just realized that it would inherit the unknown of the
>> fermata's vertical position that escapes collisions with other elements. I
>> don't know if it could still be treated like a Script object (to take care
>> of vertical positioning), but added to the beam stencil (to take care of
>> horizontal positioning). That would be a nice feature, though!
>>
>> - Abraham
>
> How about overriding TupletNumber?
>
> \version "2.19.32"
> %\paper { ragged-right = ##f }
>
> fermataOverTremolo =
> #(define-music-function (mus)(ly:music?)
> #{
>   \once \omit TupletBracket
>   %% maybe add this?
>   %\once \override TupletNumber.outside-staff-priority = 100
>   \once \override TupletNumber.text =
>   #(lambda (grob)
>     (let ((dir (ly:grob-property grob 'direction)))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ That one calls
                 Tuplet_bracket::get_default_dir which references a
                 whole lot of other callbacks and properties and then
                 caches the resulting value.  I'm not sure this will
                 always be correct.
>       (markup
>         #:musicglyph (format #f "scripts.~afermata" (if (= dir 1) "u" "d")))))
>   \times 1/1
>   $mus
> #})
>
> \relative c,
> {
>   \voiceTwo
>   \fermataOverTremolo \repeat tremolo 16 { a32 c }
> }
>
> Cheers,
>   Harm

-- 
David Kastrup



reply via email to

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