lilypond-user
[Top][All Lists]
Advanced

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

Lilypond mini-IDE


From: Johan Vromans
Subject: Lilypond mini-IDE
Date: 21 Jan 2009 23:11:22 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Hi,

One of the most attractive features of LilyPondTool is the ability to
quickly process a source file, view the PDF, and click back from the
PDF into the source.

Being an GNU Emacs addict, I implemented this functionality using a
couple of small scripts. If you like GNU Emacs, and have a modern
desktop Linux you may be interested in this approach. Note that you
need GNU Emacs at least version 22.

The kit includes two scripts, lilyide and textedit-url-handler. These
scripts should be installed somewhere where you can execute them
easily, e.g., in your PATH.

To enable point'n'click support, you need to tell Gnome that you want
a URL handler for textedit:// URLs. A sample config file is included
as %config.xml. This file must be placed in
~/.gconf/desktop/gnome/url-handlers/texedit/%config.xml. Change the
location of the textedit-url-handler script first, to match your
install.

Alternatively, you can use the Gnome configuration editor to create
this config.

Use:

  - Start your Emacs (if not already running)
  - Start the Emacs server (if not already running)

    M-x start-server RET

  - Start lilyide with the name of the ly source file. The source file
    will be opened in your Emacs. If there's no PDF yet, lilypond will
    be run to create one. Finally, the Gnome PDF viewer Evince is
    started to show the PDF document.

Now you can edit the document as usual. Every time you save the
document lilyide will automatically run lilypond again, and update the
PDF view in Evince. Moreover, you can click on the PDF document and
you'll be positioned at the right location in your Emacs document.
Terminate the IDE session by killing lilyide.

Big fat warning: NEVER USE EVINCE TO PRINT A LILYPOND SCORE.
You'll get lousy results. Use Acrobat Reader, or print directly.

Happy hacking -- feedback welcome.

-- Johan
   Chord is alive! http://chordii.sourceforge.net

Attachment: lilyide.zip
Description: Zip archive


reply via email to

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