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: Xavier Scheuer
Subject: Re: \repeat volta not worked in midi output.
Date: Sun, 30 May 2010 22:13:47 +0200

2010/5/30 Oleksandr Gavenko <address@hidden>:

> 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.
>
> It is possible conditions or preprocessing
> in Lilypond source file to switch between:
>
> \stuff {
>  \unfoldRepeats
>  {...}
>  \midi {}
> }
>
> and
>
> \stuff {
>  {...}
>  \layout { }
> }
>
> using 2 stage build (one for correct .midi,
> another for nice look .pdf)?

Yes that's why it is said to use 2 different \score blocks:
one for the PDF output (with only \layout ) and another one for the
MIDI (with \unfoldRepeats and \midi only).
It is easier if you used variables for your music expression.

For example:

myMusic = {
  \relative c' {
    \repeat volta 2 {
      c4 d e f
    }
  }
}

\score {  % PDF only
  \myMusic
  \layout {}
}

\score {  % MIDI
  \unfoldRepeats
  \myMusic
  \midi {}
}


Cheers,
Xavier

--
Xavier Scheuer <address@hidden>



reply via email to

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