If set to 1, the rendered image(s) will be embedded into a hyperlink to an appropriate MIDI file.

override_midi

Known file name, that is, if override_midi="name" is given, [[File:name]] does not yield a red link

Uses the specified MIDI file instead of generating one with LilyPond. Use this attribute together with the midi attribute (see before) or the sound attribute (see later). This attribute is useful if you already have a MIDI file whose quality is superior to what would be generated by LilyPond.

override_audio

Known file name, that is, if override_audio="name" is given, [[File:Name]] does not yield a red link

Embeds the media specified by the file name in the HTML after the score image(s). This is an alternative to the sound attribute (see further). It can, for example, be useful if you have a suitable audio file of superior quality compared with the auto-generated audio file. Of course, you can still omit both attributes in this case and add the file manually to the page, if you prefer.

raw

0 (default), 1

If set to 1, the score code is interpreted as a complete LilyPond file. Use this option if you want to create more complex scores. If the score language (lang attribute) is not set to lilypond, this attribute is ignored. By default (when raw=0), provided code is wrapped in a \score{...} block, along with default \layout{...} and \midi{...} blocks, if not already provided.

sound

0 (default), 1

If set to 1, an audio file will be generated for the score, provided you installed and configured Extension:TimedMediaHandler. An audio player will be embedded in the HTML after the score image(s).

Use the extension distributor. You can also download a tarball from GitHub: [1]; or as a zipped file: [2]. The score master branch on GitHub works with a stable version of MediaWiki, but may not yet have the newest features in it.

wfLoadExtension('Score');$wgScoreLilyPond='/path/to/your/lilypond/executable';/* required */$wgScoreAbc2Ly='/path/to/your/abc2ly/executable';/* if you want ABC to LilyPond conversion */$wgScoreFluidsynth='/path/to/your/fluidsynth/executable';/* if you want MIDI to audio conversion */$wgScoreSoundfont='/path/to/your/soundfont/file';/* required for Fluidsynth */$wgScoreTimidity='/path/to/your/timidity/executable';/* fallback when Fluidsynth is not installed */$wgScoreLame='/path/to/your/lame/executable';/* required to convert audio file for MP3 */$wgScoreTrim=true;/* Set to false if you don't want score trimming */

Create a subdirectory named lilypond in your $wgUploadDirectory (usually the directory named images in in your MediaWiki directory). Make sure the directory is writable by your Web server.

Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.26 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.26 and earlier), instead of wfLoadExtension('Score');, you need to use:

The $wgScoreTrim is a boolean which defaults to the value of $wgUseImageMagick. If true, the resulting score PNG images are trimmed with ImageMagick. If you don't want trimming, or don't want to install ImageMagick, set $wgScoreTrim to false.

Set $wgScoreTimidity to the path of your TiMidity++ executable (typically /usr/bin/timidity or /usr/local/bin/timidity).
If $wgScoreFluidsynth does not exist, TiMidity++ will be used as fallback instead.

This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page.