LilyPond & Textmate Make Beautiful Music

This weekend I finally got a chance to take the music notation software LilyPond for a spin. I had heard of the open source project and was anxious to try it out. As a former Finale and Sibelius user I must admit to being a bit skeptical about its capabilities. I was pleasantly surprised to find the documentation and examples on the website helpful in getting started. For my first attempt with the software I kept it simple. Since my eight-year-old son is now taking piano lessons, I decided to compose a simple Minuet in the Baroque style. Here is an excerpt of the beginning of the Minuet that LilyPond created:

Minuet in G

To create a piece you simply need a text editor. Being a programmer I chose my favorite editor TextMate. Before beginning to create my masterpiece (ahem) I did a quick check to see if there was a TextMate bundle for LilyPond. Low and behold there was. An hour-and-half later I had completed the piece and was impressed by the results. LilyPond creates a MIDI file for you as well if you tell it to. Getting it to follow the repeats took a little work, but once I found the right command, it worked fine. Below are all of the Minuet files:

Minuet in G (.ly)
Minuet in G (PDF)
Minuet in G (.mp3)
Minuet in G (MIDI)

The .mp3 file was created by importing the MIDI file into GarageBand, selecting two different MIDI instruments, and exporting. Check out the PDF link above to see the final output. Then take a look at the .ly file to see how LilyPond and Textmate make beautiful music together.

2 Responses to “LilyPond & Textmate Make Beautiful Music”


  1. Gravatar Icon 1 Jacob Mar 25th, 2008 at 7:55 pm

    I haven’t been able to find this bundle on the Interwebs, can you post a link?

  2. Gravatar Icon 2 admin Mar 26th, 2008 at 6:03 am

    Sure Jacob. You can use the following link to download a bash script that will install the bundle:

    http://netcetera.org/cgi-bin/tmbundles.cgi#Lilypond

    Or check it out from subversion directly:

    svn –username anon –password anon co http://macromates.com/svn/Bundles/trunk/Bundles/Lilypond.tmbundle/

Leave a Reply





September 2007
M T W T F S S
« Jul   Feb »
 12
3456789
10111213141516
17181920212223
24252627282930

Categories


Random Photos

  • IMG_2043.JPG
    IMG_0055.JPG
    Sunrise on the way to work
    IMG_2087.JPG


Now Reading

Planned books:

None

Current books:

  • The Consequences of Ideas: Understanding the Concepts that Shaped Our World

    The Consequences of Ideas: Understanding the Concepts that Shaped Our World by R. C. Sproul

  • Born Standing Up

    Born Standing Up by Steve Martin

Recent books:

View full Library