lilypond-user-fr
[Top][All Lists]
Advanced

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

Re: Spanners


From: Martial R
Subject: Re: Spanners
Date: Wed, 8 Feb 2023 17:05:44 +0100

Bonjour,

j'ai cette fonction sous le coude
%--------------------------------------------
stop = \stopTextSpan}
textSp = #(define-event-function (str)(markup?)
           #{
            \tweak bound-details.left.text \markup $str
           % \tweak bound-details.left.text \markup \normal-text $str
            \tweak style #'line % mettre en commentaire pour des pointillés
            \tweak dash-period #0.8
            \tweak bound-details.left.stencil-align-dir-y #0
            \tweak bound-details.left-broken.attach-dir -1 % pos y du trait
            \tweak bound-details.left-broken.padding 1.5
            \tweak bound-details.left-broken.text ##f
            \tweak bound-details.right.padding -1.5 %pos x du trait vertical
            \tweak bound-details.right-broken.text ##f %pas de trait au break-ligne
            \tweak bound-details.right.text
           \markup
           \with-dimensions #'(0 . 0) #'(-.3 . 0)
           \draw-line #'(0 . -1)
           \startTextSpan
           #})


\relative { c' e\textSp"Grr jusqu'au bout" \break e e c1 c c c c1\stop  }
%--------------------------------------------------------------------------------

Le mer. 8 févr. 2023 à 16:25, K. Blum <benbignoise@gmx.de> a écrit :
Bonjour Vincent,

> les extenseurs de lignes d'octavation se termine par un petit crochet
> genre ---------¬
> Ce n'est pas le cas des indication textuelle avec extension

peut-être comme ça?

% -------------------------------------------------
\version "2.24.0"
\relative c' {
   \override TextSpanner.bound-details.left.text = "Break"
   c1\startTextSpan
   c c\stopTextSpan
   r
   \override TextSpanner.dash-period = #1
   \override TextSpanner.dash-fraction = #0.5
   \override TextSpanner.bound-details.right.text = \markup { \draw-line
#'(0 . -1) }
   \once \override TextSpanner.bound-details.left.stencil-align-dir-y =
#CENTER

   c\startTextSpan
   c c\stopTextSpan
   r
}
% -------------------------------------------------

Il y a beaucoup d'inspiration içi:

https://lsr.di.unimi.it/LSR/Item?id=271






--
Martial Rameaux


reply via email to

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