Re: Remove empty staves but one.

2015-11-01 Thread Peter Reid
Thanks for your reply David, 

I couldn't work out how to integrate your code into my score (I'm a beginner at 
Lilypond) but I searched for it on google and found what I was looking for here 
:

http://lilypond.1069038.n5.nabble.com/override-VerticalAxisGroup-remove-empty-works-only-at-the-beginning-of-a-score-td52152.html
 


Thanks again David and the Lilypond community,
Peter

> Le 2015 Nov 1 à 19:08, David Kastrup  a écrit :
> 
> preid > writes:
> 
>> Dear list, 
>> 
>> I'm working on a stage musical type score in which the last few bars contain
>> only spoken text over rests.  I am using this code :
>> 
>>  \layout {
>>\context {
>>  \Staff
>>  \RemoveEmptyStaves
>>  % To use the setting globally, uncomment the following line:
>>  \override VerticalAxisGroup #'remove-first = ##t
>>} 
>> }
>> \version "2.18.2"
>> 
>> I'm using this code within \score to display my spoken text as recommended
>> in the fine manual.
>>  \override LyricText.font-shape = #'italic
>>  \override LyricText.self-alignment-X = #LEFT
>> 
>> Everything works great except that the last staves are hidden since they
>> contain only rests, and the spoken text floats in the void. Is there a way
>> of overriding RemoveEmptyStaves temporarily, perhaps by forcing a bar rest
>> to appear for instance.  
>> 
>> I've done lots of searching and up to now I've always found solutions to my
>> problems but this one has got me stumped.
>> 
>> Thanks in advance, 
>> Peter
>> 
>> PS. Thanks to everyone who contributes to Lilypond I'm really enjoying using
>> it and I really appreciate all the hard work that goes into it.
> 
> \set Staff.remove-empty = ##f maybe?
> 
> -- 
> David Kastrup

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


Re: Remove empty staves but one.

2015-11-01 Thread Peter Reid
That works for me and is simpler than the solution that I posted previously.  

I also need to cancel the effect of the command later on. I assumed I just had 
to add :
\revert Staff.VerticalAxisGroup.remove-empty

But this doesn't seem to have any effect.

Thanks again,
Peter


> Le 2015 Nov 1 à 21:37, David Kastrup <d...@gnu.org> a écrit :
> 
> Peter Reid <p...@peterreid.org> writes:
> 
>> Hi David, 
>> 
>> Thanks for getting back to me.
>> 
>> I'm not sure where I need to put that.  Sorry... I've tried putting it
>> with my notes ; in the \score part...  no luck.
>> 
>> I get this sort of error message:
>> 
>> Avertissement : vérification du type de propriété pour « remove-empty
>> » (translation-type?) non trouvée Probable faute de frappe
>> 
>> Can't seem to get this error message into English, but basically it
>> means there is probably a "typo".
>> 
>> I'm still a beginner so I'm probably missing something obvious, thanks
>> for your help.
>> 
>> Peter
>> 
>>> Le 2015 Nov 1 à 19:08, David Kastrup <d...@gnu.org> a écrit :
>>> 
>>> \set Staff.remove-empty = ##f maybe
> 
> My fault, I misremembered.  It's likely
> 
> \override Staff.VerticalAxisGroup.remove-empty = ##f
> 
> instead.
> 
> -- 
> David Kastrup


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