lilypond-user
[Top][All Lists]
Advanced

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

Re: jeté


From: Jean Abou Samra
Subject: Re: jeté
Date: Wed, 25 Jan 2023 23:21:00 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0

On 25/01/2023 22:57, Martín Rincón Botero wrote:
> Dear list,
> 
> is there any way to make this markup mockup of a jeté symbol into a
> proper articulation (so that Lilypond knows how to give it an
> appropriate direction, f. ex.)? I suspect a Scheme workaround might be
> possible :-).
> 
> \markup \undertie ....
> \markup \overtie ....
> 
> Or is it something that needs to be baked into the font? Btw., "jeté"
> is part of the SMuFL standard. See
> http://www.smufl.org/version/1.2/range/stringTechniques/. It would be
> nice to add a symbol for this to Lilypond by default.


Try

\version "2.24.0"

jetéMarkup = \markup \undertie \pad-x #0.3 \pattern #4 #X #0.2 \musicglyph 
"dots.dot"


\layout {
  \context {
    \Score
    scriptDefinitions =
      #(acons 'jeté
              `((padding . 0.5)
                (direction . ,DOWN)
                (stencil
                 . ,(lambda (grob)
                      (grob-interpret-markup
                       grob
                       (if (eqv? DOWN (ly:grob-property grob 'direction))
                           jetéMarkup
                           #{ \markup \scale #'(1 . -1) \jetéMarkup #})))))
              default-script-alist)
  }
}

jeté = #(make-music 'ArticulationEvent 'articulation-type 'jeté)

{
  c'\jeté c'^\jeté c'_\jeté
}


It would be nice if you could spell that as

scriptDefinitions.jeté = ...


but infrastructure for nested context properties is not implemented yet,
unlike grob properties where you can do
\override Grob.property.subproperty = foo.

Best,
Jean

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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