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: Mats Bengtsson
Subject: Re: Repeat midi using "repeat volta"
Date: Mon, 21 Nov 2005 16:55:13 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

For some reason, it seems you have to explicitly specify a context
for the music. Try:

\score {
\new Staff{ \unfoldRepeats \pentatonic }
\midi { \tempo 4 = 120 }
}

or

\score {
\new Voice{ \unfoldRepeats \pentatonic }
\midi { \tempo 4 = 120 }
}


  /Mats

Jannik Jeppesen wrote:

Hi.... this should work right?
But it generates a correct pdf, but the midi file is emty...
Can you figure out the problem?
Cheers
Jannik
==========
\version "2.6.3"

\header {
 title = "A-mol pentaton skala"
}

\paper {
 #(set-paper-size "a4")
 tagline = "Jannik Jeppesen"
 indent = 0\cm
}

pentatonic = \relative c {
 \key a \minor
 \time 4/4
   \repeat volta 20 {
 a8\6 c\6 d\5 e\5 g\4 a\4 c\3 d\3 e\2 g\2 a\1 c\1
 a\1 g\2 e\2 d\3 c\3 a\4 g\4 e\5 d\5 c\6
}}

guitar = {
 \context Staff {
 \clef "G_8"
 \pentatonic
 }
}

guitartab = {
 \context TabStaff {
 \override Beam #'transparent = ##t
 \override Stem #'transparent = ##t
 \pentatonic
 }
}

\score {
 <<
   \context Staff = guitar \guitar
   \context TabStaff = guitar \guitartab
 >>
\layout { }
}
\score {
 \unfoldRepeats \pentatonic
 \midi { \tempo 4 = 120 }
}
==================
----- Original Message ----- From: "Gilles" <address@hidden>
To: <address@hidden>
Sent: Thursday, November 17, 2005 1:28 AM
Subject: Re: Repeat midi using "repeat volta"



How is it posible to create a midi file repeating a bar 20 times, but still
using the command

   \repeat volta 20 {
   }
?

If i write unfold, it generates 20 bars in the layout, and thats not what i
need.
Until now I have created 2 files, a layout file, and a midi....but isnĀ“t
it possible to do it in one file?


Yes, it is:

%---
\version "2.6.0"

themusic = \new Staff
\relative c'' {
 \repeat volta 20 {
   a b c d |
 }
}

\score {
 \themusic
 \layout {}
}

\score {
 \unfoldRepeats \themusic
 \midi { \tempo 4 = 60 }
}
%---


Best,
Gilles


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


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


--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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