[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: unfoldRepeats for midi
From: |
Paul Scott |
Subject: |
Re: unfoldRepeats for midi |
Date: |
Sat, 06 Jun 2009 02:11:34 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081204 Iceape/1.1.14 (Debian-1.1.14-1) |
Mark Polesky wrote:
Paul Scott wrote:
2.13.1
I have read all of NR 3.5
Should the following work to unfold the above repeats for a MIDI
file?
I'm assuming you read this page:
http://lilypond.org/doc/v2.13/Documentation/user/lilypond/Repeats-in-MIDI
I said I read all of 3.5 :)
Following the template provided there, I believe this should work:
\score {
<< { \unfoldRepeats \global } \melody >>
\layout {
% layout stuff...
}
}
\score {
<< { \unfoldRepeats \global } \melody >>
\midi {
\context {
\Score tempoWholesPerMinute = #(ly:make-moment 120 4)
}
}
}
Let me know if it doesn't.
It doesn't work. At first I didn't use \unfoldRepeats for the graphical
output as you show above. But adding the \unfoldRepeats to the first
(graphical) part the graphical music is unfolded in a strange way. The
graphical music is generated with the repeat signs omitted but nothing
unfolded. The music would be 16 bars long and it is but the last 6 bars
are blank.
Here is what I used last:
\version "2.13.1"
\include "english.ly"
#(set-global-staff-size 24)
global = { \repeat volta 2 s1*6 \alternative { { s1*2 } { s1*2 } } }
melody = \relative c' {
\key d \major
fs2 fs4. fs8 g4 fs e d d2( ~ d8 e8 d4) a2 a8 b d4 fs e2. fs4 e d e
fs2 ~ fs8 g fs4 e1 e8 d ~ d2. ~ d1
}
\score {
<<
\new Staff = soprano <<
\context Voice = soprano { << { \unfoldRepeats \global } \melody >> }
>>
>>
\layout{ }
}
\score{
\new Score{ << { \unfoldRepeats \global } \melody >> }
\midi{
\context{ \Score tempoWholesPerMinute = #(ly:make-moment 120 4) }
}
}
Thanks,
Paul