Reworked, it works ;-)

%-----
\version "2.6.3"

intro = \new DrumStaff {
  \new DrumVoice {
    \override Beam #'positions = #'(5 . 5)
    \drummode {
      \stemUp
      \repeat volta 4 {
        <bd hh>8 hh hh hh <sn hh> hh <bd hh> <bd hh>
        hh hh hh hh <sn hh> hh hh hh
      }
    }
  }
}

\score {
  \intro
  \layout {}
}

\score {
  \unfoldRepeats \intro
  \midi { \tempo 4 = 120 }
}
%-----


- Assigning/defining a variable (here: "intro") must be done
  at the top level (i.e. not inside "\score").
- Whatever is needed to create a "voice" (here: "\new DrumVoice")
  will be necessary both for the layout and the midi.


Gilles


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

Reply via email to