Here's a better example!
\version "2.18.2"
#(set-default-paper-size "a4landscape")
#(set-global-staff-size 14)
music =
{
<<
\new StaffGroup <<
\tag #'score \tag #'sop \new Staff \with { instrumentName = #"Soprano
Cornet"
shortInstrumentName = #"Eb Cn" } << a b c >>
\tag #'score \tag #'solc \new Staff \with { instrumentName = #"Solo
cornet"
shortInstrumentName = #"S Cn" } << a b c >>
\tag #'score \tag #'repc \new Staff \with { instrumentName =
#"Repiano cornet"
shortInstrumentName = #"R Cn" } << a b c >>
\tag #'score \tag #'c2 \new Staff \with { instrumentName = #"2nd
Cornet"
shortInstrumentName = #"Cn 2" } << a b c >>
>> %staffgroup
>>
}
\score {
\keepWithTag #'c2 \music
\layout {}
\midi { }
}
\score {
\keepWithTag #'score \music
\layout {}
\midi { }
}
\score {
\keepWithTag #'score \removeWithTag #'repc \music
\layout {}
\midi { }
}
On 8 July 2015 at 00:27, Chris Yate <[email protected]> wrote:
> 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 <[email protected]> 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]
>> <http:///user/SendEmail.jtp?type=node&node=178491&i=0>> 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] <http:///user/SendEmail.jtp?type=node&node=178484&i=0>
>>> 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="javascript:_e(%7B%7D,'cvml',&#
>>> 39;ml-node%[email protected]');"
>>> target="_blank">ml-node+s1069038n3h2@...
>>> To unsubscribe from Lilypond, click here.
>>> NAML
>>> <http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>
>>
>> ------------------------------
>> View this message in context: Re: Switching on/off instrument staff
>> <http://lilypond.1069038.n5.nabble.com/Switching-on-off-instrument-staff-tp178484p178491.html>
>> Sent from the User mailing list archive
>> <http://lilypond.1069038.n5.nabble.com/User-f3.html> at Nabble.com.
>>
>> _______________________________________________
>> lilypond-user mailing list
>> [email protected]
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>>
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user