Lilypond is neat. I'm using its output (and a buncha tools I built around it) in my iPhone app launching Tuesday: http://wonderwarp.com/etude
I'm going to try to write a post to show HN about the tech behind it. I wrote my own .ly parser/preprocessor in Python as part of the song conversion. To help the forked version of Lilypond correlate the screen position and time offset of notes in the piece, I ended up having it do things like unroll macros and loops and do all the layout changes I needed to make em work in the app.
As a side note: I'm a huge fan of Shovebox. I use quick jot at least once an hour.