[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Switching on/off instrument staff
From: |
Robert Schmaus |
Subject: |
Re: Switching on/off instrument staff |
Date: |
Wed, 08 Jul 2015 10:58:10 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
In addition to the suggested way with tags (which surely works, but
which I find overly complicated), a simpler way would be to simply place
the Staffs in variables and comment out the ones you don't want to have
in the next engraving. Like this:
violinStaff = \new Staff \with { instrumentName = "Violin" }{
\relative c'' { c4 d e f }
}
celloStaff = \new Staff \with { instrumentName = "Cello" }{
\relative c { c4 d e f }
}
\score{
<<
\violinStaff
\celloStaff
>>
}
IMO there's no need for a complicated tag structure, just go for a
simple approach. You will want to use a variable structure for any
non-trivial score anyway ...
Best, Rob
Am 07/07/15 um 17:42 schrieb Víctor:
> 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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
- Switching on/off instrument staff, Víctor, 2015/07/07
- Re: Switching on/off instrument staff, tisimst, 2015/07/07
- Re: Switching on/off instrument staff,
Robert Schmaus <=
- Re: Switching on/off instrument staff, Chris Yate, 2015/07/08
- Re: Switching on/off instrument staff, Robert Schmaus, 2015/07/08
- Re: Switching on/off instrument staff, Víctor, 2015/07/08
- Re: Switching on/off instrument staff, tisimst, 2015/07/08
- Re: Switching on/off instrument staff, Víctor, 2015/07/08
- Re: Switching on/off instrument staff, tisimst, 2015/07/08
- Re: Switching on/off instrument staff, Víctor, 2015/07/08