lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: One score per track of a midi file?


From: Mats Bengtsson
Subject: Re: One score per track of a midi file?
Date: Wed, 05 May 2010 09:17:23 +0200
User-agent: Thunderbird 2.0.0.23 (X11/20090817)



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: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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