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

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

Re: Quadrillage rythmique amélioré


From: Jean ABOU SAMRA
Subject: Re: Quadrillage rythmique amélioré
Date: Thu, 19 Sep 2019 19:05:10 +0200

Bonjour,
Je pensais y être arrivé mais pas tout à fait… Je poste mon code au cas où 
quelqu'un aurait l'opportunité de regarder.

\version "2.21.0"

<<
  { c'1 g'1 c'1 a1 }
  { c'1 a''1 c'1 c'1 }
  { c'1 c'1 c'1 c'1 }
>>

\layout {
  \context {
    \Staff
    \consists "Grid_point_engraver"
    gridInterval = #(ly:make-moment 1)
  }
  \context {
    \Score
    \consists "Grid_line_span_engraver"
    \override GridLine.X-offset = #.88
    \override GridLine.layer = -3
    \override StaffSymbol.layer = -2
    \override NoteHead.layer = -1
    \override StaffSymbol.whiteout = ##t
    \override NoteHead.whiteout = 5
    \override NoteHead.whiteout-style = #'outline
  }
}


Le rendu ressemble à ce qui est attendu, mais le « whiteout » des NoteHead 
cache aussi la portée.
Existe-t-il un moyen que soit dessiné d'abord le StaffSymbol, puis le NoteHead, 
puis les whiteout de StaffSymbol et NoteHead ?
Merci,
Jean Abou Samra

> Le 13 sept. 2019 à 08:48, NOreply via lilypond-user-fr <address@hidden> a 
> écrit :
> 
> Postcript, un peu moins manuel:
> http://lilybin.com/iwt9uz/1
> 
> Le code:
> %--------------------
> \version "2.18.2"
> ligne-bas = \markup { 
>    \postscript #"
> 1 0 moveto
> 0.3 setlinewidth % épaisseur
> 1 0 0 setrgbcolor % couleur
> 0 -4 rlineto
> stroke
> "    }
> ligne-haut = \markup { 
>    \postscript #"
> 1 0 moveto
> 0.3 setlinewidth % épaisseur
> 1 0 0 setrgbcolor % couleur
> 0 4 rlineto
> stroke
> "    }
> 
> %%%%%%%%%%%%
> \layout {
>   \override Staff.TextScript.layer = -1
>   \override Staff.BarLine.layer = 1
>   \override Staff.StaffSymbol.whiteout = ##t
> }
> { 
>  <<
> \new Staff { 
>      g'1_\ligne-bas
>    g'1
>    g'_\ligne-bas 
>    a_\ligne-bas
> 
> %% portée 2    
>  }
> 
>  \new Staff { 
> 
>      g'1
>    c'''1^\ligne-haut
>    g'1
>    g'1 }
> 
>>> 
> }
> 
> 
> 
> 
> 
> 
> --
> Sent from: http://lilypond-french-users.1298960.n2.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]