lilypond-user
[Top][All Lists]
Advanced

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

Re: Setting width for one-measure example


From: Valentin Villenave
Subject: Re: Setting width for one-measure example
Date: Mon, 3 Dec 2007 10:43:13 +0100

2007/12/3, Albert Frantz <address@hidden>:
> Valentin (and others),
>
> One more question: How can I save just that little example as a bitmap
> file (preferably TIFF), without the whole page and without the footer?

oh, yes.

just add

\header { tagline = "" }

below the \paper block to remove the footer.

However, you'll still have to crop your image, using a convenient
program (the GIMP is perfect, but even the simplest one can do that).

(if you don't know about the GIMP, it's a free photoshop-like image
editing program, you can find more about it on gimp.org )

>  It looks like if I use lilybook I need to go through the trouble of
> creating an HTML or other file, rather than just working on the
> Lilypond file directly.  Is there an easy way to do this?

No need to use lilypond-book (I have never used it). It requires
knowledge about the LaTeX format, which is waaay more complicated than
HTML.

To get a png image, use the command:
lilypond -fpng yourfile.ly

(e.g. if you're on Windows, just do
  Start Menu > "Run"
  type "cmd"
  in the new window that opens, type cd Desktop (if your file is on
your desktop)
  then type lilypond -fpng yourfile.ly (replace it with the name of your file)
)
If you find ( I often do) that your PNG image is too small and too
pixelized, you can have a bigger (and better) one by adding the line

#(set-global-staff-size 20)

in your source file, before the \score block (replace the "20" with
any number you want).

You can also have a SVG image if you need a vectorized image.


Here's what I usually do for my website:
A small source file with  #(set-global-staff-size 40) and \header{ tagline = ""}
I run the lilypond -fpng command.
I open the png image with the GIMP editing program.
I click on "autocrop image", I save it.
I upload it.
Total time: 5 seconds (and if I'm on Linux, it's even faster using
only command line).

Hope this helps!

Valentin




reply via email to

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