Hello Jose, I've found the simplest thing is to generate them all at once. It doesn't take that much time for normal sized choral pieces and you get all the files at once. If you have the music for each voice in separate variables, say \soprano, \alto, \tenor, \bass, then a \book block like the one below will produce 5 pdfs and 5 midi files -- one for each of the parts plus one containing them all.
\book { \score { \new Voice \soprano \new Voice \alto \new Voice \tenor \new Voice \bass \layout { } \midi {} } #(define output-suffix "Soprano") \score { \new Voice \soprano \layout { } \midi {} } #(define output-suffix "Alto") \score { \new Voice \alto \layout { } \midi {} } #(define output-suffix "Tenor") \score { \new Voice \tenor \layout { } \midi {} } #(define output-suffix "Bass") \score { \new Voice \bass \layout { } \midi {} } } %% end of book Cheers, Mike On Tue, Jan 25, 2011 at 3:25 PM, <lilyp...@josebreden.nl> wrote: > Hello, > > Singing in a coral I would like to exercise the different parts (soprano, > alto, bass). > So I would like to generate from a single .ly-file, multiple midi-files: > - all parts together (which is allready working) > - only soprano part > - only alto part > - only bass part > With a small kind of switch. > > My preference would be using boulean variables for example: > * midi-soprano = true/false > * midi-alto = true/false > * midi-bass = true/false > > How can I implement something like this, in the attached example? > > Thanks a lot in advance!! > > Regards, Jose > > > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > http://lists.gnu.org/mailman/listinfo/lilypond-user > _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user