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

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

Re: aide markup pointe fleche


From: Martial R
Subject: Re: aide markup pointe fleche
Date: Sun, 21 May 2023 18:19:30 +0200


Bonjour,

Très intéressant, je propose après toutes ces solutions
une automatisation

%------------------------------
\version "2.24.1"

Fleche = #(define-event-function ( text1 text2 arrw-angle) (markup? markup? number-list?)
   #{  
       \tweak TextSpanner.direction #down
       \tweak TextSpanner.style  #'line
       \tweak TextSpanner.thickness  #1
       \tweak TextSpanner.bound-details.right.arrow ##t
       \tweak TextSpanner.arrow-length #0.8
       \tweak TextSpanner.arrow-width  #0.5
       \tweak TextSpanner.font-shape  #'upright
       \tweak TextSpanner.bound-details.left.padding  #-0.7
       %\tweak TextSpanner.bound-details.right.padding  #0
       \tweak TextSpanner.bound-details.left.text  \markup $text1 %"[F]"
       \tweak TextSpanner.bound-details.right.text \markup $text2 %"[S]"
       \tweak TextSpanner.rotation $arrw-angle
       \startTextSpan
   #})


\new Staff {
\times 4/6 { d'16\p\downbow\Fleche "(A)""[B]" #'(8 -1 0)  e' f' g' a' c''\stopTextSpan }
}
%------------------------------


Le dim. 21 mai 2023 à 17:08, Francisco Uberto - composer - <franciscouberto@gmail.com> a écrit :
je partage une autre solution au problème de la fleche qui me semble assez intéressant. 

\new Staff {
\override TextSpanner #'direction = #down
\override TextSpanner #'style = #'line
\override TextSpanner #'thickness = #1
\override TextSpanner #'(bound-details right arrow) = ##t
\override TextSpanner #'arrow-length = #0.8
\override TextSpanner #'arrow-width = #0.25
\override TextSpanner #'font-shape = #'upright
\override TextSpanner #'(bound-details left padding) = #-0.7
\override TextSpanner #'(bound-details right padding) = #1.5
\override TextSpanner #'(bound-details left text) = \markup { "[F]" }
\override TextSpanner #'(bound-details right text) = \markup { " [s]"}
\times 4/6 { d'16\startTextSpan e' f' g' a' c''\stopTextSpan }
}
fleche-lilypond.jpeg
il pourrait être utile pour quelqu'un d'autre.


On Sun, May 21, 2023 at 12:16 PM Francisco Uberto - composer - <franciscouberto@gmail.com> wrote:
Merci mille fois Pierre 🙏🙏🙏
J'avais imaginé l'utilisation de rotate mais j'avais pas réussi. 
Bonne journée 



Francisco Uberto
+33 7 49 37 62 12

Le dim. 21 mai 2023, 11:17, Pierre Perol-Schneider <pierre.schneider.paris@gmail.com> a écrit :
Bonjour Fransisco,

Par ex. :

\tuplet 6/4 {
   \uN d16\p\downbow--(
     _\markup {
       "[F]"
       \rotate #15
       \with-dimensions-from \null
       \concat {
         \draw-line #'(8.5 . 0)
         \arrow-head #X #RIGHT ##t
       }
     }
    e fis gis ais c) -"[s]"
 }

Cordialement,
Pierre

Le dim. 21 mai 2023 à 10:22, Francisco Uberto - composer - <franciscouberto@gmail.com> a écrit :
Hello tout le monde !

J'espère que vous allez bien.

j'ai ce bout de code, et je n'arrive pas à faire en sorte que la pointe de la flèche soit en direction le symbole [s]. Quelqu'un peut m'illustrer comment faire svp ?

voici mon code : 

uN = #(define-music-function
(note)
(ly:music?)
#{
\override NoteHead.stencil = #ly:text-interface::print
\override NoteHead.text =
\markup \musicglyph "noteheads.s2laFunk"
#} )
\tuplet 6/4{\uN d16\p\downbow--(_\markup{"[F]" \combine
\arrow-head #Y #LEFT ##t
\draw-line #'(8 . 5)
} e fs gs as c_\markup{"[s]"})}


Capture d’écran 2023-05-21 à 10.20.19.png

merci d'avance et bon dimanche !

Francisco



Francisco Uberto
+33 7 49 37 62 12


Francisco Uberto
+33 7 49 37 62 12


--
Martial Rameaux


reply via email to

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