lilypond-user
[Top][All Lists]
Advanced

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

Re: \repeat volta not worked in midi output.


From: Marc Hohl
Subject: Re: \repeat volta not worked in midi output.
Date: Sun, 30 May 2010 22:13:20 +0200
User-agent: Thunderbird 2.0.0.24 (X11/20100317)

Oleksandr Gavenko schrieb:
On 2010-05-30 21:43, Xavier Scheuer wrote:
2010/5/30 Oleksandr Gavenko<address@hidden>:

This example:

\score {
  \drums {
    \repeat volta 2 { bd sn bd sn }
  }
  \layout { }
  \midi { }
}

in Cygwin Lilypond \version "2.12.4"
produce correct .pdf but midi file don't
contain repeat of rhythm pattern second time.

I temporary use '\repeat unfold' which work fine.

Hi!

Normal, you have to use \unfoldRepeats .
See NR 3.5.4 Repeats in MIDI
http://lilypond.org/doc/v2.13/Documentation/notation/repeats-in-midi.html

Thanks for answer!

Unfortunately \unfoldRepeats expand all repeat pattern in .pdf!
So I get correct .midi output but my .pdf
become unreadable because of big repeated patterns.
At the end of the link above you can find the solution: you have to write two \score
blocks:

The first one is the one for the pdf:

\score {
 ..your music goes here..
 \layout { .. }
}

while the second does *NOT* contain a \layout-block but only a \midi-block and 
therefore
is only responsible for the midi output:

\score {
 \unfoldRepeats ../your music goes here/..
 \midi {}
}

Then one lilypond run should do the job.

Note thet \unfoldRepeats must not be coded within your music variables, but 
only in the \score-block.

HTH

Marc






reply via email to

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