Re: Displaying a staff despite \removeEmptyStaves

2015-04-06 Thread Anton Curl

On 06/04/2015 00:23, Urs Liska wrote:

I don't know enough about your setup, but if you'd write
\hide MultiMeasureRest
it should make the rests invisible but still act as rests.

Maybe this helps?
Urs
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Yes! exactly what I needed. Thanks!

Is there a shorter command than \override MultiMeasureRest.transparent = 
##f to display the rests again?


Anton Curl

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Displaying a staff despite \removeEmptyStaves

2015-04-06 Thread Anton Curl

On 06/04/2015 11:48, Simon Albrecht wrote:

Yes: \undo\hide MultiMeasureRest.

Yours, Simon

Very well.

Thanks to all of you!

Anton Curl

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Displaying a staff despite \removeEmptyStaves

2015-04-06 Thread Simon Albrecht

Am 06.04.2015 um 09:59 schrieb Anton Curl:

On 06/04/2015 00:23, Urs Liska wrote:

I don't know enough about your setup, but if you'd write
\hide MultiMeasureRest
it should make the rests invisible but still act as rests.

Maybe this helps?
Urs
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Yes! exactly what I needed. Thanks!

Is there a shorter command than \override MultiMeasureRest.transparent 
= ##f to display the rests again?

Yes: \undo\hide MultiMeasureRest.

Yours, Simon

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Displaying a staff despite \removeEmptyStaves

2015-04-05 Thread Urs Liska



Am 06.04.2015 um 00:00 schrieb Anton Curl:

On 05/04/2015 23:50, Urs Liska wrote:
Do you really need to write spacer rests in such staves? Usually you 
would enter MultiMeasureRests when instruments are pausing and let 
LilyPond remove the staves automatically if appropriate. In that case 
Kieren's solution should work also for you.


HTH
Urs
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


In fact, it's at a point where the musician is improvising. I can't 
write rests, because he's playing. Therefor I use spacer rest with 
\startTextSpan and \stopTextSpan.


I don't know enough about your setup, but if you'd write
\hide MultiMeasureRest
it should make the rests invisible but still act as rests.

Maybe this helps?
Urs



Anton Curl

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Displaying a staff despite \removeEmptyStaves

2015-04-05 Thread Urs Liska



Am 05.04.2015 um 23:38 schrieb Anton Curl:

On 05/04/2015 21:58, Kieren MacMillan wrote:
You need to add multi-measure-rest-interface to the 
keepAliveInterfaces for that staff.


Here are the two bits of syntactic sugar I use:

showMMRs = {
   \set Staff.keepAliveInterfaces =
 #'( rhythmic-grob-interface
 multi-measure-rest-interface
 lyric-interface
 stanza-number-interface
 percent-repeat-interface) }
hideMMRs = \unset Staff.keepAliveInterfaces

So put a \showMMRs in your music expression at the point where you 
want to force that Staff context to appear (despite having 
\RemoveEmptyStaves active), and put a \hideMMRs when you want it to 
return to “default” (i.e., the Staff will disappear, if possible).


Hope this helps!
Kieren.
___

Kieren MacMillan, composer
www:  http://www.kierenmacmillan.info
email:  i...@kierenmacmillan.info


Thanks for the reply!

Your solution works with R1*4 for example, but not with s1*4.

I assume I have to add an *-interface, but I can't find which.



Do you really need to write spacer rests in such staves? Usually you 
would enter MultiMeasureRests when instruments are pausing and let 
LilyPond remove the staves automatically if appropriate. In that case 
Kieren's solution should work also for you.


HTH
Urs


Anton Curl

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Displaying a staff despite \removeEmptyStaves

2015-04-05 Thread Anton Curl

On 05/04/2015 21:58, Kieren MacMillan wrote:

You need to add multi-measure-rest-interface to the keepAliveInterfaces for 
that staff.

Here are the two bits of syntactic sugar I use:

showMMRs = {
   \set Staff.keepAliveInterfaces =
 #'( rhythmic-grob-interface
 multi-measure-rest-interface
 lyric-interface
 stanza-number-interface
 percent-repeat-interface) }
hideMMRs = \unset Staff.keepAliveInterfaces

So put a \showMMRs in your music expression at the point where you want to 
force that Staff context to appear (despite having \RemoveEmptyStaves active), 
and put a \hideMMRs when you want it to return to “default” (i.e., the Staff 
will disappear, if possible).

Hope this helps!
Kieren.
___

Kieren MacMillan, composer
www:  http://www.kierenmacmillan.info
email:  i...@kierenmacmillan.info


Thanks for the reply!

Your solution works with R1*4 for example, but not with s1*4.

I assume I have to add an *-interface, but I can't find which.

Anton Curl

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Displaying a staff despite \removeEmptyStaves

2015-04-05 Thread Anton Curl

On 05/04/2015 21:59, Colin Campbell wrote:
As a quick, off the top of my admittedly empty head, kludge: assuming 
you know where the staff will break, why not just put in a spacer rest?


Cheers,
Colin


I don't know if I understand well what you mean by put in a spacer rest.

My staff is already full of s1, so it's not displayed because of 
\removeEmptyStaves, and this isn't what I want.


Anton Curl
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Displaying a staff despite \removeEmptyStaves

2015-04-05 Thread Anton Curl

On 05/04/2015 23:50, Urs Liska wrote:
Do you really need to write spacer rests in such staves? Usually you 
would enter MultiMeasureRests when instruments are pausing and let 
LilyPond remove the staves automatically if appropriate. In that case 
Kieren's solution should work also for you.


HTH
Urs
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


In fact, it's at a point where the musician is improvising. I can't 
write rests, because he's playing. Therefor I use spacer rest with 
\startTextSpan and \stopTextSpan.


Anton Curl

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Displaying a staff despite \removeEmptyStaves

2015-04-05 Thread Anton Curl

Hi everyone!

Is it possible to force an empty staff to be displayed occasionally when 
\removeEmptyStaves is used?


Thanks!

Anton Curl

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Displaying a staff despite \removeEmptyStaves

2015-04-05 Thread Colin Campbell

On 2015-04-05 01:38 PM, Anton Curl wrote:

Hi everyone!

Is it possible to force an empty staff to be displayed occasionally 
when \removeEmptyStaves is used?


Thanks!

Anton Curl


As a quick, off the top of my admittedly empty head, kludge: assuming 
you know where the staff will break, why not just put in a spacer rest?


Cheers,
Colin

--
I've learned that you shouldn't go through life with a catcher's mitt on both 
hands.
You need to be able to throw something back.
-Maya Angelou, poet (1928- )


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Displaying a staff despite \removeEmptyStaves

2015-04-05 Thread Kieren MacMillan
Hi Anton,

 Is it possible to force an empty staff to be displayed occasionally when 
 \removeEmptyStaves is used?

You need to add multi-measure-rest-interface to the keepAliveInterfaces for 
that staff.

Here are the two bits of syntactic sugar I use:

showMMRs = {
  \set Staff.keepAliveInterfaces =
#'( rhythmic-grob-interface
multi-measure-rest-interface
lyric-interface
stanza-number-interface
percent-repeat-interface) }
hideMMRs = \unset Staff.keepAliveInterfaces

So put a \showMMRs in your music expression at the point where you want to 
force that Staff context to appear (despite having \RemoveEmptyStaves active), 
and put a \hideMMRs when you want it to return to “default” (i.e., the Staff 
will disappear, if possible).

Hope this helps!
Kieren.
___

Kieren MacMillan, composer
www:  http://www.kierenmacmillan.info
email:  i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user