lilypond-user
[Top][All Lists]
Advanced

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

Re: exporting just a single bar in a png file?


From: Federico Bruni
Subject: Re: exporting just a single bar in a png file?
Date: Tue, 27 Oct 2009 11:28:58 +0100
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)

Patrick McCarty wrote:
On 2009-10-27, Patrick McCarty wrote:
On 2009-10-26, Mark Freeman wrote:
Hi everyone. I'm new to lilypond, so please bare with me.  I've
written a simple python script which takes a very particular
percussion notation and converts it to lilypond format. My script pops
this into a template and calls the lilypond command to create the
export.  Currently this produces a full pdf and I know I can turn on
png export with --png. I tried setting the template to clip only one
measure, but I still get a full page of output, even though the score
only consist of a single measure. I'm looking to produce a simple
image file that is only the single measure, with no extra score text,
etc... Is this possible?
Does the following command accomplish what you need?

  $ lilypond --dpreview file.ly

Sorry, this should be

  $ lilypond -dpreview file.ly


-Patrick

Wow, I was looking for something like this, now I know how to create the .png of a minimal example without having to use Gimp:

lilypond -fpng -dpreview file.ly

NB: both normal and preview output files are created, the preview file (the cropped one) is saved with a .preview.png suffix.

Thanks Patrick
--
Federico Bruni  |  http://www.gnurag.net/blog/

LibrePlanet Italia
http://groups.fsf.org/wiki/LibrePlanetItalia





reply via email to

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