Re: repeats in parallel mode?

2010-07-11 Thread Phil Holmes
The problem appears to lie with the repeats.  If you use the version I have 
below, the music works as you would expect.  I'm not quite sure what you're 
trying to do with the repeats - repeat the first bar twice and the second 
bar twice?


To debug problems like this is not too difficult: look at the examples in 
the Reference Notation and take away everything that's not there: I got rid 
of the \score and the \layout while looking at what wasn't right.  I then 
got rid of the repeats and all was OK.  I put the score and layout back 
which changed nothing.



\version 2.12.3

\parallelMusic #'(voiceA voiceB) {
  \key c \major
  \time 4/4

%\repeat volta 2 {
c4 c c c  | %voiceA measure 1
c,4 c c c | %voiceB measure 1
%}

%\repeat volta 2 {
g4 g g g  | %voiceA measure 2
g,4 g g g | %voiceB measure 2
%}

}
\score {
\new StaffGroup 
 \new Staff  \relative c'' \voiceA \\ \relative c'' \voiceB



\layout{}
}


--
Phil Holmes


- Original Message - 
From: William Bajzek williambaj...@gmail.com

To: lilypond-user@gnu.org
Sent: Sunday, July 11, 2010 4:20 AM
Subject: repeats in parallel mode?


I just read about the \parallelMusic function and was trying it out. First 
of all, I'd like to say that I think it's great because it is a very 
convenient way to lay out multi-voice music. The problem I've run into can 
be seen in the following; I expect it to emit two measures but it emits four 
instead. Hopefully my intent is clear enough; what's the right way to do 
this?



\version 2.12.3

\parallelMusic #'(voiceA voiceB) {
  \key c \major
  \time 4/4

\repeat volta 2 {
c4 c c c  | %voiceA measure 1
c,4 c c c | %voiceB measure 1
}

\repeat volta 2 {
g4 g g g  | %voiceA measure 2
g,4 g g g | %voiceB measure 2
}

}

\score {
\new StaffGroup 
 \new Staff  \relative c'' \voiceA \\ \relative c'' \voiceB



\layout { } %emits four measures
}


Thanks,
- William Bajzek
williambaj...@gmail.com





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


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


Re: repeats in parallel mode?

2010-07-11 Thread paulxiii

The only thing which seems to work for me, after experimenting for a while,
is to add the repeats manually like this:

\version 2.12.3 

\parallelMusic #'(voiceA voiceB) { 
   \key c \major 
   \time 4/4 

c4 c c c  | \bar :|: %voiceA measure 1 
c,4 c c c | \bar :|: %voiceB measure 1 

g4 g g g  | \bar :|: %voiceA measure 2 
g,4 g g g | \bar :|: %voiceB measure 2 

} 

\score { 
  \new StaffGroup  
\new Staff  \relative c'' \voiceA \\ \relative c'' \voiceB 
   
\layout{} 
}

Searching around a bit, I saw other people with similar difficulties with
alternate endings in repeats.

Paul


William Bajzek wrote:
 
 I just read about the \parallelMusic function and was trying it out. First
 of all, I'd like to say that I think it's great because it is a very
 convenient way to lay out multi-voice music. The problem I've run into can
 be seen in the following; I expect it to emit two measures but it emits
 four instead. Hopefully my intent is clear enough; what's the right way to
 do this?
 
 
 \version 2.12.3
 
 \parallelMusic #'(voiceA voiceB) {
\key c \major
\time 4/4
 
   \repeat volta 2 {
   c4 c c c  | %voiceA measure 1
   c,4 c c c | %voiceB measure 1
   }
 
   \repeat volta 2 {
   g4 g g g  | %voiceA measure 2
   g,4 g g g | %voiceB measure 2
   }
 
 }
 
 \score {
   \new StaffGroup 
 \new Staff  \relative c'' \voiceA \\ \relative c'' \voiceB
   
   \layout { } %emits four measures
 }
 
 
 Thanks,
 - William Bajzek
 williambaj...@gmail.com
 
 
 
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user
 
 

-- 
View this message in context: 
http://old.nabble.com/repeats-in-parallel-mode--tp29129407p29131128.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: repeats in parallel mode?

2010-07-11 Thread paulxiii

You actually don't need that many \bar :|:. Only one per bar and not two.

c4 c c c  |   %voiceA measure 1 
c,4 c c c | \bar :|: %voiceB measure 1 

g4 g g g  |   %voiceA measure 2 
g,4 g g g | \bar :|: %voiceB measure 2

Paul
-- 
View this message in context: 
http://old.nabble.com/repeats-in-parallel-mode--tp29129407p29131186.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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


Re: repeats in parallel mode?

2010-07-11 Thread William Bajzek

On Jul 11, 2010, at 2:15 AM, Phil Holmes wrote:

 The problem appears to lie with the repeats.  If you use the version I have 
 below, the music works as you would expect.  I'm not quite sure what you're 
 trying to do with the repeats - repeat the first bar twice and the second bar 
 twice?

I want it to emit two measures, each surrounded with repeats. 


- William Bajzek
williambaj...@gmail.com





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


Re: repeats in parallel mode?

2010-07-11 Thread Reinhold Kainhofer
Am Sonntag, 11. Juli 2010, um 05:20:19 schrieb William Bajzek:
 I just read about the \parallelMusic function and was trying it out. First
 of all, I'd like to say that I think it's great because it is a very
 convenient way to lay out multi-voice music. The problem I've run into can
 be seen in the following; I expect it to emit two measures but it emits
 four instead. Hopefully my intent is clear enough; what's the right way to
 do this?

 \parallelMusic #'(voiceA voiceB) {
\key c \major
\time 4/4
 
   \repeat volta 2 {
   c4 c c c  | %voiceA measure 1
   c,4 c c c | %voiceB measure 1
   }
 
   \repeat volta 2 {
   g4 g g g  | %voiceA measure 2
   g,4 g g g | %voiceB measure 2
   }
 
 }

You need to place every measure into a separate repeat:

\parallelMusic #'(voiceA voiceB) {
   \key c \major
   \time 4/4

  \repeat volta 2 { c4 c c c }  | %voiceA measure 1
  \repeat volta 2 { c,4 c c c } | %voiceB measure 1

  \repeat volta 2 { g4 g g g } | %voiceA measure 2
  \repeat volta 2 { g,4 g g g } | %voiceB measure 2
}


Then it works just fine.

Cheers,
Reinhold


-- 
--
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial  Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org

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


repeats in parallel mode?

2010-07-10 Thread William Bajzek
I just read about the \parallelMusic function and was trying it out. First of 
all, I'd like to say that I think it's great because it is a very convenient 
way to lay out multi-voice music. The problem I've run into can be seen in the 
following; I expect it to emit two measures but it emits four instead. 
Hopefully my intent is clear enough; what's the right way to do this?


\version 2.12.3

\parallelMusic #'(voiceA voiceB) {
   \key c \major
   \time 4/4

\repeat volta 2 {
c4 c c c  | %voiceA measure 1
c,4 c c c | %voiceB measure 1
}

\repeat volta 2 {
g4 g g g  | %voiceA measure 2
g,4 g g g | %voiceB measure 2
}

}

\score {
\new StaffGroup 
  \new Staff  \relative c'' \voiceA \\ \relative c'' \voiceB

\layout { } %emits four measures
}


Thanks,
- William Bajzek
williambaj...@gmail.com





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