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

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

Re: Courbe d’intensite


From: Pierre Perol-Schneider
Subject: Re: Courbe d’intensite
Date: Sat, 2 Nov 2019 10:42:58 +0100

Bonjour Yohann,
Perso, à partir de cette base:

\version "2.19.83"
intensite =
\markup {
  \override #'(line-join-style . round)
  \override #'(filled . #f)
  \path #0.5 #'(
     (moveto 0 0)
     (lineto 0 2)
     (lineto 35 4) ; <= à remplacer par des courbes 'curveto x1 y1 x2 y2 x3 y3
     (lineto 35 0)
     (closepath))
}

\relative c' {
  c-\tweak padding #2 _\markup\intensite
  d e f g8 a b c d e f g
}

Je dessinerai la forme de la courbe au crayon, à l'échelle 35 cm x 5 cm, avec les axes, afin d'en estimer au plus jsute les coordonnées des tangentes.
(Plus d'info sur ces tangentes ici : https://fr.wikipedia.org/wiki/Courbe_de_B%C3%A9zier, voir "Courbes de Bézier cubiques", LilyPond utilise les coordonnées des points P1, P2 et P3)
Ça prend un peu de temps mais le résultat est top.

Cordialement,
Pierre

Le sam. 2 nov. 2019 à 10:13, martial <address@hidden> a écrit :

Bonjour,
en utilisant makeClusters

%--------------------
\version "2.18.2"

fragment = \relative c' {
 c d e f g8 a b d c d e f
}

intensite = \relative c' {
  <c d>4 <c e>2 <c g'>4
  <c a'>4 <c e>8 <c b'>  <c g'>2 c

}

<<
  \new Staff \fragment
  \new Staff {   
    \stopStaff
    \omit Staff.Clef
    \omit Staff.TimeSignature
    \makeClusters \intensite
  }
>>

%--------------------

http://lilybin.com/t4551b/1



-----
Lilypondement,
Martial Rameaux
--
Sent from: http://lilypond-french-users.1298960.n2.nabble.com/


reply via email to

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