[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: staff to end of socre
From: |
Damian leGassick |
Subject: |
Re: staff to end of socre |
Date: |
Thu, 15 Dec 2011 00:00:16 +0000 |
On 14 Dec 2011, at 22:05, Xavier Scheuer wrote:
> On 14 December 2011 20:21, Damian leGassick <address@hidden> wrote:
>> Hi David
>>
>> thanks for the quick reply
>>
>> the to-end-of-line function is half way there, but if I modify your example
>> to \repeat unfold 17 there is only one staff after the line break
>>
>> what I'd like is for both staves to remain until the end of the score.
>>
>> I know that in a simple example it's just as easy to add spacers but I've
>> got a number of complex musicological examples where the trial and error
>> involved in determining exactly what spacer values to use is proving very
>> time consuming
>
> Hi,
>
> If you know which voice is the longest and if you use variables for
> the voices, then you can use skip-of-length longestVoiceVariableName .
>
> %%%%
>
> \version "2.15.21"
>
> shortestVoice = \repeat unfold 8 e'1
> midLengthVoice = \repeat unfold 16 d'1
> longestVoice = \repeat unfold 24 c'1
>
> \score {
> <<
> \new Staff = "shortest" {
> <<
> % in order to keep alive the staff (with spacer rests)
> $(skip-of-length longestVoice) % 2.15.21 syntax
> % #(skip-of-length longestVoice) % 2.14.2 syntax
> \shortestVoice
>>>
> }
> \new Staff = "midLength" {
> <<
> % in order to keep alive the staff (with spacer rests)
> $(skip-of-length longestVoice) % 2.15.21 syntax
> % #(skip-of-length longestVoice) % 2.14.2 syntax
> \midLengthVoice
>>>
> }
> \new Staff = "longest" {
> \longestVoice
> }
>>>
> }
>
> %%%%
>
> Cheers,
> Xavier
>
> --
> Xavier Scheuer <address@hidden>
Thanks Xavier, this works perfectly (although couldn't get it to work in 2.14
for some reason...)
Damian
- staff to end of socre, Damian leGassick, 2011/12/14
- Re: staff to end of socre, Damian leGassick, 2011/12/14
- Re: staff to end of socre, David Nalesnik, 2011/12/14
- Re: staff to end of socre, Caio Barros, 2011/12/14
- Re: staff to end of socre, Damian leGassick, 2011/12/14
- Re: staff to end of socre, James, 2011/12/14
- Re: staff to end of socre, Xavier Scheuer, 2011/12/14
- Re: staff to end of socre, Kieren MacMillan, 2011/12/14
- Re: staff to end of socre,
Damian leGassick <=
- Re: staff to end of socre, Xavier Scheuer, 2011/12/14
- Re: staff to end of socre, Damian leGassick, 2011/12/15
- Re: staff to end of socre, Xavier Scheuer, 2011/12/15