lilypond-user
[Top][All Lists]
Advanced

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

Re: Switching on/off instrument staff


From: Chris Yate
Subject: Re: Switching on/off instrument staff
Date: Wed, 8 Jul 2015 00:27:24 +0100

Yes. This is how I do parts and score.

Use tags


music = 
{
  <<
          \new StaffGroup <<
\tag #'score \tag #'sop  \new Staff \with { instrumentName = #"Soprano Cornet" 
                    shortInstrumentName = #"Eb Cn" } <<     \global \Marks \SopranoCornetVoice >>        
\tag #'score \tag #'solc         \new Staff \with { instrumentName = #"Solo cornet" 
                           shortInstrumentName = #"S Cn" }  <<   \global \Marks  \SoloCornetVoice >>
\tag #'score \tag #'repc         \new Staff \with { instrumentName = #"Repiano cornet" 
                           shortInstrumentName = #"R Cn" }  <<   \global \Marks \RepianoCornetVoice >>
\tag #'score \tag #'c2         \new Staff \with { instrumentName = #"2nd Cornet" 
                           shortInstrumentName = #"Cn 2" }  <<   \global \Marks \SecondCornetVoice >>
      >> %staffgroup
>>
}


Parts:

(This is 2nd Cornet)

\score {
 \keepWithTag #'c2 \music
  \midi { }
}


Score:

#(set-default-paper-size "a4landscape")
#(set-global-staff-size 14)
\score {
 \keepWithTag #'score \music

  \midi { }
}





On 8 July 2015 at 00:15, tisimst <address@hidden> wrote:
Short answer: No. 

Long answer: Still no. However, you could just use block comments %{ ... %} around the staff you want to temporarily disable.

HTH,
Abraham

On Tuesday, July 7, 2015, Víctor [via Lilypond] <[hidden email]> wrote:
Hello Lilyponders:

Is there a way to place a switch in some instrument part so it is not
rendered when such switch is off? Something like:

\score{
     <<
         \new Staff \with { instrumentName = "Violin" }{
             \relative c'' { c4 d e f }
         }
         \new Staff \with { instrumentName = "Cello" }{
             \relative c { c4 d e f }
         }
     >>
}

\layout{
     \disableCello
}

Thanks,
Víctor.

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user



If you reply to this email, your message will be added to the discussion below:
http://lilypond.1069038.n5.nabble.com/Switching-on-off-instrument-staff-tp178484.html
To start a new topic under User, email <a href="" href="mailto:address@hidden" target="_blank">39;address@hidden&#39;);" target="_blank">address@hidden
To unsubscribe from Lilypond, click here.
NAML


View this message in context: Re: Switching on/off instrument staff
Sent from the User mailing list archive at Nabble.com.

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

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