Hi Oleksandr,

On 30/05/10 21:05, Oleksandr Gavenko wrote:
On 2010-05-30 22:07, Xavier Scheuer wrote:
2010/5/30 Oleksandr Gavenko<gaven...@gmail.com>:

If I want generate many midi fragment I repeat text

\score { \new Staff { ... }
\layout { }
\midi { }
}

as many times as need. And when I run

$ lilypond my.ly

I get a lot of my.midi, my-1.midi, ..., my-17.midi, ...

It is possible to control names of generated midi files
in .ly source file?

Hi again!

Well, yes and no. :D

#(define output-suffix "mysuffix")

See AU 3.2.1 Invoking lilypond
http://lilypond.org/doc/v2.12/Documentation/user/lilypond-program/Invoking-lilypond.html


Thanks! Almost that I need.

If you are using a recent 2.13 version, you can do this:

\book {
  \bookOutputName = "track-one"
  \score { \new Staff { ... }
  \layout { }
   \midi { }
 }
}
\book {
  \bookOutputName = "track-two"
  \score { \new Staff { ... }
  \layout { }
   \midi { }
 }
}
etc.
Though any .pdf files generated will also be called track-one.pdf, track-two.pdf etc.

Hope this helps,

Cheers,
Ian Hulin


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

Reply via email to