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: Jannik Jeppesen
Subject: Re: Repeat midi using "repeat volta"
Date: Fri, 18 Nov 2005 02:14:47 +0100

Hey.
Thanx for all your answers, they are great.

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???

Jannik

=================
\version "2.6.3"

\header {title = " "
 composer = "Jannik Jeppesen"
}

\paper {
 tagline = "Jannik Jeppesen"
 indent = 0\cm
}

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
     }
   }
 }
}

chorus = \new DrumStaff {
 \new DrumVoice {
   \override Beam #'positions = #'(5 . 5)
   \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
     }
   }
 }
}

\score {
 \intro
 \chorus
 \layout {}
}

\score {
 \unfoldRepeats \intro
 \unfoldRepeats \chorus
 \midi { \tempo 4 = 132 }
}
====================
----- Original Message ----- From: "Gilles" <address@hidden>
To: <address@hidden>
Sent: Friday, November 18, 2005 1:37 AM
Subject: Re: Repeat midi using "repeat volta"



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
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user





reply via email to

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