Re: How to write Non sequential repeat alternatives

2014-10-08 Thread MarcM
thanks much Keith. 
When i run your code i get this message: warning: already have a volta
spanner, ending that one prematurely

I had that warning as well and thought i was doing something wrong. 




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-to-write-Non-sequential-repeat-alternatives-tp167294p167327.html
Sent from the User mailing list archive at Nabble.com.

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


Re: How to write Non sequential repeat alternatives

2014-10-08 Thread Keith OHara
MarcM marc at mouries.net writes:

 When i run your code i get this message: warning: already have a volta
 spanner, ending that one prematurely

Oh, so that's why you had the explicit (volta #f) in your version.
If I see a warning, but the output is good, I consider myself warned
and happy, but I should have kept your good idea to avoid the warning

\score { \relative c'' {
  \time 6/8
  \partial 8 a16 b
  \repeat volta 5 {
c 4   c8   c   d   e   
d 8   b  g g   a   b
  } \alternative {
{
  \set Score.repeatCommands = #'((volta 1,3) )
  c 8   a  a a   b   c   
  b 8   e, e e4  a16 b
} { 
  \set Score.repeatCommands = #'((volta #f)(volta 2) end-repeat)
  c 8   b  a b4  g8
  a4   a8a4  a16 b
} {
  c8b  a b4   g8
  a4   a8a8   e'  f 
} { a,4 a8 }} a4.\fermata \bar |. } }



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


How to write Non sequential repeat alternatives

2014-10-07 Thread MarcM


I am pulling my hair to be able to write non sequential repeat alternatives.
Looked though doc and LSR.
I found the \set Score.repeatCommands and I am getting close but the repeat
bars are not added at the right place.


non_sequential_repeats.png
http://lilypond.1069038.n5.nabble.com/file/n167294/non_sequential_repeats.png 
 
non_sequential_repeats.ly
http://lilypond.1069038.n5.nabble.com/file/n167294/non_sequential_repeats.ly  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/How-to-write-Non-sequential-repeat-alternatives-tp167294.html
Sent from the User mailing list archive at Nabble.com.

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


Re: How to write Non sequential repeat alternatives

2014-10-07 Thread Keith OHara
MarcM marc at mouries.net writes:

 I found the \set Score.repeatCommands and I am getting close but the 
repeat
 bars are not added at the right place.

If I understand your comment, 
 It is played as: A , A1, A , A2, A , A3, A , A4, A , A5/End 
where endings 1 and 3 are the same and you don't want to retype the notes,
then the repeats go all the way back to the start of the 'A' part,
and you can use the usual \repeat \alternative input, and change
just the labels on the voltas

\score { \relative c'' {
  \time 6/8
  \partial 8 a16 b
  \repeat volta 5 {
c 4   c8   c   d   e   
d 8   b  g g   a   b
  } \alternative {
{
  \set Score.repeatCommands = #'((volta 1,3) )
  c 8   a  a a   b   c   
  b 8   e, e e4  a16 b
} { 
  \set Score.repeatCommands = #'((volta 2) end-repeat)
  c 8   b  a b4  g8
  a4   a8a4  a16 b
} {
  c8b  a b4   g8
  a4   a8a8   e'  f 
} { a,4 a8 }} a4.\fermata \bar |.
  }
}


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