address@hidden wrote:
... I can compile a midi file from code that contains no voice
voice tags, but once I make 2 voices it compiles a midi file
with no sound.
However, when compiled as a midi it will only make the first
measure of music "bd4 sn4 bd4 sn4". It does not leave empty
space where the next measure would be, it simply does not
compile it. Is there something I'm missing or is this a bug?
I am currently using lilypond version 2.10.33 as the manual for
2.10 is the only one I can find instructions for entering
percussion in. Perhaps this has been changed in the updates of
the language, does it compile for any one else?
You're right... that's a bad example in the docs since it doesn't
generate the expected MIDI file. I'll send a note to the
developers. Try the example below instead.
But wow, 2.10 is like the Old Testament. The announcement page for
2.12 mentions "almost 30 new features" and "nearly 200 bugs" fixed.
I strongly recommend you download 2.13 (or 2.12 if you're more
comfortable with the stable release).
Here's the percussion page for 2.13:
http://lilypond.org/doc/v2.13/Documentation/user/lilypond/Common-notation-for-percussion
May I ask how you tried to search for this but couldn't find it?
I only ask so that we can make things easier to find.
HTH
- Mark
\version "2.13.1"
\score {
\new DrumStaff <<
\drummode {
<<
\new DrumVoice = "1" {
\voiceOne
R1
\repeat unfold 1 { \repeat unfold 16 hh16 }
}
\new DrumVoice = "2" {
\voiceTwo
\repeat unfold 2 { bd4 sn bd sn }
}
>>
}
>>
\layout { }
\midi { }
}