On 31.12.2009, at 15:18, Corien Prins wrote:

I'm not top posting.

% When percent repeat is used in drummode, all output in the
% same score after the repeat is messed up: the different voices
% creat their own staff with a different clef.
% When 'percent' is replaced by 'unfold' or 'volta' it works fine.


\paper{ ragged-right=##t }
\version "2.12.1"

\score {
   \new DrumStaff <<
      \new DrumVoice = "1" { s1 *2 }
      \new DrumVoice = "2" { s1 *2 }
      \drummode {
         \repeat percent 2 {
            << {hh8 hh hh hh hh hh hh hh|} \\ {bd4 sn bd sn|} >>
            << {hh8 hh hh hh hh hh hh hh|} \\ {bd4 sn bd sn8 bd8|} >>
         }
         << {hh8 hh hh hh hh hh hh hh|} \\ {bd4 sn bd sn|} >>
<< {hh8 hh hh hh s2|} \\ {bd4 sn sn16 sn sn sn sn16 sn sn sn |} >>
      }

}


I think what you want is this:
\version "2.12.1"

\new DrumStaff <<
   \new DrumVoice \drummode {
      \voiceOne
\repeat percent 2 { \repeat unfold 2 { hh8 hh hh hh hh hh hh hh } } |
      hh8 hh hh hh hh hh hh hh   |
      hh8 hh hh hh s2   |
   }
   \new DrumVoice \drummode {
      \voiceTwo
      \repeat percent 2 { bd4 sn bd sn | bd4 sn bd sn8 bd } |
      bd4 sn bd sn   |
      bd4 sn sn16 sn sn sn sn16 sn sn sn  |
   }
>>

If so, then organizing your voices differently might help. Basically, the problem is that the {s1*2} in your original only keep the DrumVoices alive for two measures, but your music is longer than two measures. The <<{}\\{}>> construct is equivalent to <<\new Voice = "1" {\voiceOne} \new Voice = "2" {\voiceTwo}>>. You'll note that the \new DrumVoice and \drummode commands are missing from this construct. I would advise against using them. Also, so you know, before posting something to the bug list, it's better to post it to the lilypond-user list, most problems (like this) stem more from a misunderstanding of how the program works, rather than an actual problem in the program.

James



_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to