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

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

Re: Portées vides invisibles


From: Pierre Perol-Schneider
Subject: Re: Portées vides invisibles
Date: Wed, 14 Jan 2015 16:15:29 +0100

Oups, avec les bons instruments c'est mieux :

\version "2.18.2"

global = {
  \time 2/2
  \key a\major
}

musiqueUn = {
  \set Staff.shortInstrumentName = "It1"
  \global
  \repeat unfold 20 { s1 }
  \stopStaff
  \break
  %{
  \omit Staff.Clef
  \omit Staff.TimeSignature
  \omit Staff.KeySignature
  %}
  \override Staff.Clef.stencil = ##f
  \override Staff.KeySignature.stencil = ##f
  \override Staff.TimeSignature.stencil = ##f
  \unset Staff.shortInstrumentName
  s1
  %\omit Staff.BarLine
  \override Staff.BarLine.stencil = ##f
  \repeat unfold 89 { s1 }
  \startStaff 
  %{
  \undo\omit Staff.Clef
  \undo\omit Staff.TimeSignature
  \undo\omit Staff.KeySignature
  %}
  \revert Staff.Clef.stencil
  \revert Staff.KeySignature.stencil
  \revert Staff.TimeSignature.stencil
  \tag instUn { \set Staff.shortInstrumentName = "It1" }
  \tag instDeux { \set Staff.shortInstrumentName = "It2" }
  \break
  s1
  %\undo\omit Staff.BarLine
  \revert Staff.BarLine.stencil
  \repeat unfold 29 { s1 }
  \bar "|."
}

musiqueDeux = {
  \global
  \repeat unfold 140 { s1 }
  \bar "|."
}

\score {
  \new StaffGroup <<
    \new Staff \with {
      instrumentName = "Inst1"
    } \keepWithTag instUn \musiqueUn
    \new Staff \with {
      instrumentName = "Inst2"
    } \keepWithTag instDeux \musiqueUn
    \new Staff \with {
      instrumentName = "Inst3"
      shortInstrumentName = "It3"
    } \musiqueDeux
    \new Staff \with {
      instrumentName = "Inst4"
      shortInstrumentName = "It4"
    } \musiqueDeux
  >>
}


Pierre

reply via email to

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