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: Sat, 10 Jun 2023 00:02:25 +0200


ha mais si ça fonctionne  \after 2.. et sans râler
%----------------------------------------
\version "2.24.1"

#(use-modules (srfi srfi-2))

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 -0 %pos x du trait vertical
            \tweak bound-details.right-broken.text ##f %pas de trait au break-ligne
            \tweak bound-details.right.text
           \markup
           \draw-line #'(0 . -1)
            \tweak right-bound-info
              #(grob-transformer
                'right-bound-info
                (lambda (grob orig)
                  (or (and-let* ((stencil (assq-ref orig 'stencil))
                                 ((eqv? DOWN (ly:grob-property grob 'direction))))
                        (let ((upside-down (ly:stencil-scale stencil 1 -1)))
                          (acons 'stencil upside-down orig)))
                      orig)))
           \startTextSpan
           #})



\relative c'' {
  \once \override Score.SpacingSpanner.spacing-increment = 4
  s2 \tuplet 3/2  { ees8 ees ees } c! bes~ bes4 r4_\textSp"solo break" r2 \after 2.. \stop R1
\tuplet 3/2  { ees8 ees ees } c! bes~ bes4 r4
}
%----------------------------------------

Le ven. 9 juin 2023 à 23:41, Martial R <martialr@gmail.com> a écrit :
oui LilyPond râle grave mais \after 2.. ne fonctionne pas avec cette fonction \textSp enfin je n'ai pas trouvé comment faire

Le ven. 9 juin 2023 à 23:20, Vincent Gay <vgay@vintherine.org> a écrit :
Le 09/06/2023 à 23:12, Martial R a écrit :
et avec "<> \stop"


Bonsoir Martial, merci pour ta réponse. En effet ça fait le job, quoique Lily râle sec !

Démarrage lilypond 2.24.1 [Celia.ly]...

Traitement de « /tmp/frescobaldi-0w3b4n2l/tmpg07g1d7r/Celia.ly »

Analyse...

Interprétation en cours de la musique...[8][16][24][32]

Pré-traitement des éléments graphiques...

Détermination du nombre optimal de pages...

Répartition de la musique sur une page...

Dessin des systèmes...

/tmp/frescobaldi-0w3b4n2l/tmpg07g1d7r/Celia.ly:70:12: erreur de programmation : bounds of this piece aren't breakable.

bes4 r4

\textSp"Solo Break" r2 | % 31

/tmp/frescobaldi-0w3b4n2l/tmpg07g1d7r/Celia.ly:70:12: poursuite ; croisons les doigts.

Conversion à « Celia.pdf »...

Compilation menée à son terme, avec succès.

Terminé avec succès en 1.0".


extrait du code :

../..
\textSpannerDown
   bes4 r4 \textSp"Solo Break" r2 | % 31
  R1  \stop \bar ".."
}
-- 
Vincent Gay
Envoyé depuis mon saxo-phone :)
https://myrealbook.vintherine.org/ - http://photos.vintherine.org/


--
Martial Rameaux



--
Martial Rameaux


reply via email to

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