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

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

Re: Partition ancienne


From: Pierre Perol-Schneider
Subject: Re: Partition ancienne
Date: Sat, 20 Aug 2016 09:20:26 +0200

Et la méthode automagique (à tour hasard) :

\version "2.18.2"

\score {
  \new Staff \relative c'' { c1 c2 c4 c8 c16 }
  \layout {
    \context {
      \Staff
      \override NoteHead.stencil =
        #(lambda (grob)
          (let ((duration (ly:grob-property grob 'duration-log))) ;; <= je récupère la valeur des notes
                (case duration
                  ;; Les rondes :
                  ;; ((0) ???? <= à compléter
                 
                  ;; les blanches :
                  ((1) (grob-interpret-markup grob
                         ;; je remplace les têtes de notes par des glyphes de la fonte Feta
                         #{
                            \markup {
                              \musicglyph #"noteheads.s2la"
                              \musicglyph #"noteheads.s2la"
                            }
                         #}))
                 
                  ;; les noires :
                  ((2) (grob-interpret-markup grob #{ \markup \musicglyph #"noteheads.s2la" #}))
                 
                  ;; pour toute les autres valeurs la tête de note ne change pas :              
                  (else (ly:note-head::print grob)))))
        }
  }
}

Cordialement,
Pierre

Le 20 août 2016 à 09:15, Pierre Perol-Schneider <address@hidden> a écrit :
Bonjour Gérard,

Il y a deux commandes contradictoires dans ton code :

blanche-old =
{
  %% LP "imprime" noteheads.s2la :
  \override NoteHead.stencil = #ly:text-interface::print
  \override NoteHead.text = \markup {\musicglyph #"noteheads.s2la"}
 
  %% LP "imprime" : \translate #'(2 . 0) \musicglyph #"noteheads.s2la"
  \override NoteHead.stencil = #ly:text-interface::print
  \override NoteHead.text = \markup {\translate #'(2 . 0) \musicglyph #"noteheads.s2la"}
}

Ce que je te propose :
blanche =
{
  %% LP "imprime" deux 'noteheads.s2la côte-à-côte :
  \override NoteHead.stencil = #ly:text-interface::print
  \override NoteHead.text = \markup {
    \musicglyph #"noteheads.s2la"
    \musicglyph #"noteheads.s2la"
  }
}

Codrialement,
Pierre

Le 20 août 2016 à 08:53, gerardk <address@hidden> a écrit :
J'ai ressaisi la partition et je voudrais dessiner les "blanches" comme sur
l'original.
comme il s'agit de deux "noires"côte à côte
<http://lilypond-french-users.1298960.n2.nabble.com/file/n7584080/Extrait2.jpg>
, j'ai essayé ceci :
blanche =
{
  \override NoteHead.stencil = #ly:text-interface::print
  \override NoteHead.text = \markup {\musicglyph #"noteheads.s2la"}
  \override NoteHead.stencil = #ly:text-interface::print
  \override NoteHead.text = \markup {\translate #'(2 . 0) \musicglyph
#"noteheads.s2la"}
}

Lilypond ne dessine que la deuxième tête de note et jamais la première.
Que me manque-t-il pour obtenir le bon rendu ?



--
View this message in context: http://lilypond-french-users.1298960.n2.nabble.com/Partition-ancienne-tp7584069p7584080.html
Sent from the LilyPond French Users mailing list archive at Nabble.com.

_______________________________________________
liste de diffusion lilypond-user-fr
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user-fr



reply via email to

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