lilypond-user
[Top][All Lists]
Advanced

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

Re: Tie with slash (caesura) on the curve


From: Pierre Perol-Schneider
Subject: Re: Tie with slash (caesura) on the curve
Date: Thu, 10 Nov 2022 04:31:27 +0100

Hi Andrew, Hi Dirck,

Le jeu. 10 nov. 2022 à 02:40, Andrew Bernard <andrew.bernard@mailbox.org> a écrit :

Never say anything is technically unplayable for pianists. Some of the technical ability of contemporary players leaves me breathless.

...
Actually it's for guitarists ;)

On 10/11/2022 12:02 pm, Dirck Nagy wrote:
...
I am trying to notate ties with a double-slash (caesura) along the curve.
 ...

How about:

\version "2.22.0"

oldTie = \once \override Tie.after-line-breaking =
     #(lambda (grob)
        (let*
         ((stencil (ly:tie::print grob))
          (dir (ly:grob-property grob 'direction))
          (markup-stencil
           (grob-interpret-markup grob
             (markup #:scale (cons .8 0.5)
                     (#:musicglyph "scripts.caesura.straight"))))
          (shift (- (interval-center (ly:stencil-extent stencil X))
                   (interval-center (ly:stencil-extent markup-stencil X))))
          (new-stencil
           (ly:stencil-combine-at-edge stencil
            Y dir
            (ly:stencil-translate-axis markup-stencil shift X)
            -.63)))
         (ly:grob-set-property! grob 'stencil new-stencil)))

{
  \clef"G_8"
  f'16 16
  \oldTie
  8~ 16 16 8
}

HTH, cheers,
Pierre

reply via email to

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