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
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user