lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Repeat midi using "repeat volta"


From: Gilles
Subject: Re: Repeat midi using "repeat volta"
Date: Fri, 18 Nov 2005 02:42:24 +0100
User-agent: Mutt/1.5.11

> 
> In the file I´m sending now, there is a intro AND a chorus in drummode...
> How does it work now. Later on I´ll ad verse, instrumental etc..  How does 
> this work, when I need  a pdf and a midi?
> I have writen my idea.... but it definitly doesn´t work:-( It only 
> generates the chorus in pdf???
> 

What you wrote doesn't work because you defined 2 staves (whereas
you actually want to add more contents to a single staff) and the
last one "won" (i.e. replaced the first, intro, one).

You have to define the overall structure (the drum staff) once,
and fill it in with contents (intro, chorus, ...).

You can use variables to build up the whole score (what comes in
the "\score" block):

%-----
\version "2.6.3"

intro = \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
  }
}

chorus = \drummode {
  \stemUp
  \repeat volta 4 {
    <bd hh>16 hh hh hh <sn hh> hh hh hh <bd hh> hh hh hh <sn hh> hh hh hh
  }
}

drumNotes = \new DrumStaff {
 \new DrumVoice {
   \override Beam #'positions = #'(5 . 5)
   \intro
   \chorus
 }
}

\score {
  \drumNotes
  \layout {}
}

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


Gilles

P.S.  You should read the manual for every construct which you want
      to use.  The way to get pdf and midi is always the same, but
      when you'll want lyrics, several staves, and several voices
      per staff, it'll become more complex.  There are several 
      template files in the docs, which you can start with.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]