Martin Tarenskeen wrote:
On Tue, 4 May 2010, Bill Moorier wrote:
Hello,
I need to generate one pdf file for each track of an input midi file.
Is this already possible using midi2ly and lilypond? I couldn't find
an option to do it. Or do I need to start by writing a preprocessor
that splits the input midi file into multiple midi files, each
containing a single track?
Don't expect yoo much from midi2ly. To be honest, it isn't much good
currently. Maybe Rosegarden can export separate tracks as lilypond ?
Actually, if you look at the code generated by midi2ly, you will notice
that each track ends up as a separate variable (see
http://lilypond.org/doc/v2.12/Documentation/user/lilypond-learning/Organizing-pieces-with-variables#index-assigning-variables)
which means that you only have to change the lines that put these into a
\score, in order to obtain separate scores for each track. In order to
get a separate PDF file for each, you can add a \book block around each
\score.
/Mats
--
=============================================
Mats Bengtsson
Signal Processing
School of Electrical Engineering
Royal Institute of Technology (KTH)
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: [email protected]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user