The Signpost

Technology report

Generating musical scores with LilyPond

Contribute  —  
Share this
By Adam Cuerden and Kirill Lokshin

Thanks to a new MediaWiki extension, editors can now use the popular LilyPond format to embed musical scores in articles. The "Score" extension, created by Alexander Klauer (GrafZahl), renders musical scores in LilyPond score notation as PNG images, and can also transform those scores into audio and MIDI files automatically. An example of the extension's output, together with the corresponding LilyPond markup, is shown below:

\relative c'' { \time 4/4 \key c \major 
  c4 g8 g a4 g r b^> c^> r \bar "|." } 
  \addlyrics { Shave and a hair -- cut: two bits. }
<score midi="1">\relative c'' { \time 4/4 \key c \major 
c4 g8 g a4 g r b^> c^> r \bar "|." } 
\addlyrics { Shave and a hair -- cut: two bits. }</score>

More details on the options provided by the extension can be found on its help page and MediaWiki description page. The LilyPond project also offers a variety of useful documentation, including an FAQ that explains how to use a keyboard or one of several score-based editors to create LilyPond markup that can be imported into Wikipedia articles.

In brief

+ Add a comment

Discuss this story

These comments are automatically transcluded from this article's talk page. To follow comments, add the page to your watchlist. If your comment has not appeared here, you can try purging the cache.
Re Special:Mimesearch - Its not really meant for normal users. Its also not very useful in general (Getting a list of all jpg files is pretty useless when there are millions of them). Anything in particular you want me to document about it (and any particular place you'd expect to find documentation about it)? It pretty much does what it's name is. If you happen to know the MIME type for a file, you can get a list of all files of that type. For example, we recently started to allow wav files on commons - commons:Special:MIMESearch/audio/wav gets a list of them. I should note, special:mimesearch is not a new feature, it was just rewritten to have better performance. Previously it was just turned off on wikimedia wikis. Additionally it doesn't support wildcards at the moment, so you can't just get all "audio" files, you have to look at each type individually. Bawolff (talk) 23:00, 19 August 2013 (UTC)[reply]
It could use a list of the filetypes that can be searched for, or at least the types, e.g. image/, audio/, etc. I realise it's not the most useful search tool. Adam Cuerden (talk) 23:11, 19 August 2013 (UTC)[reply]
In theory you could search for any mime type (there are literally thousands). In practise there are very few actually in use on commons - commons:Commons:MIME_type_statistics. Bawolff (talk) 00:08, 21 August 2013 (UTC)[reply]
This is a new feature, and, frankly, the documentation is still abyssmal. I believe most of the documentation presumed the user would be typing in the LilyPond by hand. This is never going to happen except for the shortest scores. Adam Cuerden (talk) 14:57, 26 August 2013 (UTC)[reply]



       

The Signpost · written by many · served by Sinepost V0.9 · 🄯 CC-BY-SA 4.0