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

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

TextScript dans une définition markup


From: martial
Subject: TextScript dans une définition markup
Date: Fri, 11 Dec 2020 11:09:08 -0700 (MST)

Bonjour, 

je cherche à inclure dans une  définition de commande markup 
un \override TextScript 
je tourne en rond depuis 2 jours !


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.21.81"

#(define-markup-command (Stabilo layout props color xdim ydim)
   (color? pair? pair?)
   #{ \override TextScript.layer = #-1 #} ;ne retourne rien
   (interpret-markup layout props
     #{
       \markup {
         \with-dimensions-from \null
         %\override TextScript.layer = #-1 %renvoie une erreur
         \override #'(corner-radius . 3)
         \rounded-box %liseret
         \with-color $color  % mettre couleur
         % la taille -x à x de -y à y et arrondi
         \filled-box #xdim #ydim #1
       }
     #}))

\relative c' {
  % calque sous les lignes
  % cherche solution pour inclure le TextScript. layer dans la commande
Stabilo 
  \override TextScript.layer = #-1
  \clef treble
  \key g \major
  <>-\markup \Stabilo  #"pink" #'(-6 . -5) #'(2 . 6)
  c4 d e fis |
  g4 f? e
  -\markup \Stabilo  #yellow #'(-5 . 5) #'(-3 . 6)
  c |
  d4 e4 fis %
  \bar "|."
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Si si il y a toujours une LilyPond solution :-) 
Merci d'avance



-----
♫artial♪
--
Sent from: http://lilypond-french-users.1298960.n2.nabble.com/



reply via email to

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