Subject: Couleur des barres de liaison des croches ?

From: Monteverdi <[email-masked]>
Date: Mon, 28 Jan 2019 09:52:50 -0700 (MST)

Bonjour,

Quand je change de couleur au milieu d'un groupe de croches la barre
conserve la couleur de la 1ère note.

Peut-on forcer le changement de couleur de la barre au milieu du groupe ?

http://lilybin.com/5r0cuf/1

\version "2.18.2"

Bleu = {
  \override NoteHead.color = #blue
  \override Stem.color = #blue
  \override Beam.color = #blue
  \override Accidental.color = #blue
%  \override Rest.color = #blue
}
Rouge = {
  \override NoteHead.color = #red
  \override Stem.color = #red
  \override Beam.color = #red
  \override Accidental.color = #red
  %\override Rest.color = #red
}

right = \relative c'' {
  \Bleu c8 e  \Rouge g c
  c \Bleu g e c
  
}

left = \relative c' {
  c2 g
  
}

\new Staff = "right" \right

Merci.

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

---

From: NOreply <[email-masked]>
Date: Mon, 28 Jan 2019 13:46:15 -0700 (MST)

Bonsoir,
Voici une solution possible:
http://lilybin.com/sxci0i/2

%%%%%%%%%%%%%%%%%
\new Staff \transpose c c' << \new Voice {       

  c8 d e f
  \override Beam.positions = #'( 0 . 0.8 )
  c8[ d e] s8
  \override Beam.positions = #'( 1 . 1 )
  c8[ 
  d e] s
              }
              \new Voice  {       

                \override Voice.Beam.color = #red
                \override Beam.positions = #'( 0.8 . 1.2 )
                s2 s4 e8[ f]  
                \override Beam.positions = #'( 1 . 1 ) 
                s4 e8[ f] }

A+

---

From: NOreply <[email-masked]>
Date: Mon, 28 Jan 2019 13:55:19 -0700 (MST)

C'était pas au milieu.
Correction:
http://lilybin.com/sxci0i/4

%%%%%%%%%%

  c8 d e f

                \override Voice.Beam.color = #red
                \override Beam.positions = #'( 0.62 . 1.2 )
                s2 s4 \set stemLeftBeamCount = #1 e8[ f]  
                \override Beam.positions = #'( 1 . 1 ) 
                s4 
               \set stemLeftBeamCount = #1 e8[ f] }