%%% Identification voixI = \relative c'' \context Voice = "voice 1"{ \override Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-6 . 6) \override Voice.TextScript #'padding = #2.0 \override MultiMeasureRest #'expand-limit = 1 \once \override Staff.TimeSignature #'style = #'() \clef "treble" \key g \major \time 2/2 \repeat volta 2 { \mark \markup { \fontsize #2 "Ritournelle" } r2 r4 r8 d8 \bar "|:" d1 e4 e d4. c8 b2. b4 c4 d e d c4 b a2 } } voixII = \relative c \context Voice = "track 2" { \override Voice.TextScript #'padding = #2.0 \override MultiMeasureRest #'expand-limit = 1 \once \override Staff.TimeSignature #'style = #'() \clef "bass" \key g \major R1 r4 r8 g'8 g2 c,4 c d4. d8 e4. fis8 g4. g8 a4 b c b a4 g d2 } %%------------------------------------ %%% Edition portée system \score { << \new Staff {\voixI \new Staff \with { %%colorisation de cette portée \override StaffSymbol #'stencil = #(lambda (grob) (let* ((staff (ly:staff-symbol::print grob)) (X-ext (ly:stencil-extent staff X)) (Y-ext (ly:stencil-extent staff Y))) (ly:stencil-add (ly:make-stencil (list 'color (rgb-color 1 0.8 0.6) (ly:stencil-expr (ly:round-filled-box X-ext Y-ext 0)) X-ext Y-ext)) staff))) } \voixII >> \layout { } } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%