Controllling repeat volta text

2016-02-22 Thread Stan Mulder
I have a jazz piece with a repeating solo section. The number of times it
repeats is indefinite. How do I notate this and then have a final measure
which is the "last time" through that section.

I played with the \set Score.repeatCommands commands, but I cannot quite get
it right.

Below is what I have so far. It's almost correct except that the repeat text
says "1." and "2." for the 1st repeat and last time repeat. Do I just
control text or is there a specific command to control this.

\repeat "volta" 2 {
  s1*8
  s1*8
  s1*8
  s1*7
}
\alternative {
  { s1 } % repeat as many times as necessary. Maybe "1 thru 99"
  { s1 } % "last time" ending
}





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


Re: Controllling repeat volta text

2016-02-22 Thread Andrew Bernard
Hi Stan,

How to do that is exactly described in the NR, Section 1.4.1 Manual repeats, 
with an example of volta ad lib.

Andrew


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


Re: Controllling repeat volta text

2016-02-22 Thread Andrew Bernard
Something like this?

\version "2.19.36"

voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } }
voltaLast = \markup { \text "last" }
\relative {
  \set Score.repeatCommands = #(list(list 'volta voltaAdLib) 'start-repeat)
  s1*8
  s1*8
  s1*8
  s1*7
  \set Score.repeatCommands = #(list (list 'volta #f) (list 'volta voltaLast) 
'end-repeat)
  s1
  \set Score.repeatCommands = #'((volta #f))
}


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


Re: Controllling repeat volta text

2016-02-22 Thread Stan Mulder
Andrew Bernard  gmail.com> writes:

> 
> Something like this?
> 
> \version "2.19.36"
> 
> voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } }
> voltaLast = \markup { \text "last" }
> \relative {
>   \set Score.repeatCommands = #(list(list 'volta voltaAdLib) 'start-repeat)
>   s1*8
>   s1*8
>   s1*8
>   s1*7
>   \set Score.repeatCommands = #(list (list 'volta #f) (list 'volta
voltaLast) 'end-repeat)
>   s1
>   \set Score.repeatCommands = #'((volta #f))
> }


Thanks for the help Andrew, but I had previously tried what you suggested,
and was not what I wanted. 

There are two problems. Your example has that horizontal repeat line going
over all of the 32 measures of the solo section. That is excessive. I want
just the last measure of the 32 bars (the 32nd bar) to have the multi
repeat. Plus, the first measure of the solo section should have a repeat
sign. I don't know how to make those two adjustments. 
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Controllling repeat volta text

2016-02-22 Thread David Wright
On Tue 23 Feb 2016 at 03:25:04 (+), Stan Mulder wrote:
> Andrew Bernard  gmail.com> writes:
> > Something like this?
> > 
> > \version "2.19.36"
> > 
> > voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } }
> > voltaLast = \markup { \text "last" }
> > \relative {
> >   \set Score.repeatCommands = #(list(list 'volta voltaAdLib) 'start-repeat)
> >   s1*8
> >   s1*8
> >   s1*8
> >   s1*7
> >   \set Score.repeatCommands = #(list (list 'volta #f) (list 'volta
> voltaLast) 'end-repeat)
> >   s1
> >   \set Score.repeatCommands = #'((volta #f))
> > }
> 
> 
> Thanks for the help Andrew, but I had previously tried what you suggested,
> and was not what I wanted. 
> 
> There are two problems. Your example has that horizontal repeat line going
> over all of the 32 measures of the solo section. That is excessive. I want
> just the last measure of the 32 bars (the 32nd bar) to have the multi
> repeat. Plus, the first measure of the solo section should have a repeat
> sign. I don't know how to make those two adjustments. 

Perhaps this is more to your liking:

\version "2.19.36"
voltaAdLib = \markup { 1. 2. 3... \text \italic { ad lib. } }
voltaLast = \markup { \text "last" }
\relative {
  s1 s1 s1 s1
  \set Score.repeatCommands = #(list (list 'volta voltaAdLib) 'start-repeat)
  s1
  \set Score.repeatCommands = #'((volta #f))
  s1 s1 s1 s1
  \set Score.repeatCommands = #(list (list 'volta voltaLast) 'end-repeat)
  s1
  \set Score.repeatCommands = #'((volta #f))
  s1 s1 s1 s1 \bar "|."
}

Cheers,
David.

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


Re: Controllling repeat volta text

2016-02-22 Thread Stan Mulder
David Wright  lionunicorn.co.uk> writes:

> Perhaps this is more to your liking:



Thanks David. You got it!




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