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: Dirck Nagy
Subject: Re: Tie with slash (caesura) on the curve
Date: Thu, 10 Nov 2022 05:19:09 +0000

Hi Pierre

It works!

Thank you SO much!  I would never have been able to do that on my own.

Good to see you are still around Lilypond!

Andrew, yes it is for guitar

Thanks again!

dirck



From: lilypond-user-bounces+dnagy=uwlax.edu@gnu.org <lilypond-user-bounces+dnagy=uwlax.edu@gnu.org> on behalf of Pierre Perol-Schneider <pierre.schneider.paris@gmail.com>
Sent: Wednesday, November 9, 2022 9:31 PM
To: Andrew Bernard <andrew.bernard@mailbox.org>
Cc: lilypond-user@gnu.org <lilypond-user@gnu.org>
Subject: Re: Tie with slash (caesura) on the curve
 
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]