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: Thu, 26 Jan 2023 12:55:48 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0

On 26/01/2023 10:24, Martín Rincón Botero wrote:
> Dear Jean,
> 
> thank you very much for this! I only changed the horizontal distances
> of the dots to 0.1 as in \pattern #4 #X #0.1. If it's not too hard, is
> there any way to make this behave like an articulation (say, like a
> staccato) regarding direction? Right now it defaults to DOWN.

Use side-relative-direction instead of direction (like the definition
of staccato in script.scm does):

\version "2.24.0"

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

\layout {
  \context {
    \Score
    scriptDefinitions =
      #(acons 'jeté
              `((padding . 0.5)
                (side-relative-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é)

{
  \textMark "default"
  c'2\jeté c''\jeté
  \textMark "forced"
  c'^\jeté c''_\jeté
}



Jean


Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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