Great! Thank you! Am Do., 26. Jan. 2023 um 12:55 Uhr schrieb Jean Abou Samra <[email protected]>: > > 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 > >
-- www.martinrinconbotero.com
