|
From: | Vincent Gay |
Subject: | Re: Spanners |
Date: | Thu, 9 Feb 2023 00:37:50 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 |
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
-- Vincent Gay Envoyé depuis mon saxo-phone :) https://myrealbook.vintherine.org/ - http://photos.vintherine.org/
[Prev in Thread] | Current Thread | [Next in Thread] |