LilyPond and LaTeX plugin for Wordpress

Finally got around to installing LilyPond on my web server so I can show off the LilyPond and LaTeX plugin for WordPress I wrote a couple of weeks ago. It can produce music snippets like this:

[music]\relative {
\key a \major
\clef bass

\once \override TextScript #’padding = #2.5

a,2\p^\markup { \bold “Allegro, ma non tanto.” }( e’_\markup{ \italic “dolce” })
fis2.( cis4 e4 d cis d8 b)
a2( gis4) e4( a fis cis dis) e1 ~
} [/music]

and

[music]
\relative {
\new PianoStaff
< <
\new Staff { \time 2/4 c4 c g' g }
\new Staff { \clef bass c,, c' e c }
>>
}
[/music]

(courtesy of Messrs. Beethoven and Mozart)

… as well as standard [math]\hbox { \LaTeX }[/math] figures too, such as [math]e^{i\pi} = -1[/math]. Great, huh? I’ll release the source in the next couple of days, time permitting.

UPDATE: I’ve just released it.


About this entry