In fact, sadly, I haven't found any trace of this in the documentation.
I imagined a solution, a bit like a programmer, but I don't know how to
implement yet.
The idea is to be able to change the instrumentName conditionally:
- if the staffGroup contains less than two staves (because one of them is
hidden to create the condensed score), the instrumentName of the staffGroup
is "fl. 1-2" and the instrumentName of the two staves is '();
- otherwise, the instrumentName of the staffGroup is '() and the
instrumentName of the two staves is "fl.1" and "fl. 2".

Unfortunately, to achieve this, I need a little more knowledge than I
have...

Il giorno lun 14 ago 2023 alle ore 16:40 james <
james.lilyp...@googlemail.com> ha scritto:

> Perhaps I'm mistaken, and if so, I'm certain will correct me, but I
> believe lilypond isn't able to do this. You would need three staves, one
> each for the individual parts and on common one for both, manually assign
> music to the appropriate staves, and insert breaks where necessary.
>
> On Aug 14, 2023, at 4:18 PM, Rip _Mus <ripetizioni.mus...@gmail.com>
> wrote:
>
> Thank you Knute,
> I already know how to hide empty staves.
> The point is to condense only during the rests, changing the name of the
> staves.  When they are separated each staff should have its own name ("fl.
> 1" - "fl. 2"), while when they are condensed they should show a unique name
> ("fl. 1-2"), perhaps next to the bracket of the staffGroup .
>
> I just don't know yet if it's feasible and how.
>
> Il lun 14 ago 2023, 15:07 Knute Snortum <ksnor...@gmail.com> ha scritto:
>
>> This part of the documentation will probably help you:
>>
>> https://lilypond.org/doc/v2.25/Documentation/notation/hiding-staves
>>
>> --
>> Knute Snortum
>>
>>
>>
>> On Sun, Aug 13, 2023 at 11:44 PM Rip _Mus <ripetizioni.mus...@gmail.com>
>> wrote:
>>
>>> Good morning everyone!
>>> I would like to ask if you know a strategy to achieve the following
>>> result.
>>>
>>> I'm working on an orchestral score. I'd like the two flute staves to be
>>> shown separate when they play, while condensed when both are silent
>>> (perhaps with a staff name showing the indication "fl. 1-2").
>>>
>>> Could you help me get this result?
>>>
>>> Thank you
>>>
>>> Rip_mus
>>>
>>
>

Reply via email to