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:11:13 +0100

Re,

Finalement j'arrive à quelque chose de potable en bidouillant un peu :

\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
  \set Staff.shortInstrumentName = "It1"
  \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"
    } \musiqueUn
    \new Staff \with {
      instrumentName = "Inst2"
    } \musiqueUn
    \new Staff \with {
      instrumentName = "Inst3"
      shortInstrumentName = "It3"
    } \musiqueDeux
    \new Staff \with {
      instrumentName = "Inst4"
      shortInstrumentName = "It4"
    } \musiqueDeux
  >>
}


... mais je serai curieux de savoir quel(s) problème(s) te pose \RemoveEmptyStaves ?

Pierre

reply via email to

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