2010/5/30 Oleksandr Gavenko <gaven...@gmail.com>:

> 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 <x.sche...@gmail.com>

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

Reply via email to