Difference between revisions of "Lilypond"

From SME Server
Jump to navigationJump to search
Line 31: Line 31:
  
 
Install the Lilypond Extension
 
Install the Lilypond Extension
 +
 +
For the extension and it's announcement see
 +
http://bugzilla.wikipedia.org/show_bug.cgi?id=189#c12
 +
 +
cd /opt/mediawiki/
 +
cp LilyPond.php (to the extensions directory)
 +
nano -w LocalSettings.php
  
 
You place special tags in your wiki article, in a nutshell,
 
You place special tags in your wiki article, in a nutshell,
  
<code
 
 
  <lilypond>
 
  <lilypond>
 
   c, d e f  
 
   c, d e f  
Line 40: Line 46:
 
   b a g f  
 
   b a g f  
 
   e d c
 
   e d c
  </lilypond>
+
</lilypond>
</code>
 
  
 
produces:
 
produces:

Revision as of 07:12, 25 August 2007

Lilypond – Music notation for everyone

LilyPond is an automated engraving system. It formats music beautifully and automatically, and has a friendly syntax for its input files.

Refer to the Lilypond FAQ for further information

Installation

Download the latest installer from http://lilypond.org/web/install/

wget http://download.linuxaudio.org/lilypond/binaries/linux-x86/lilypond-X.Y.Z.linux-x86.sh

And run the installer

sh lilypond-X.Y.Z.linux-x86.sh

Shell Access

As the preferred method to enter a score is a text editor, any editor can edit the files stored on the server.

If you have trustworthy users give them shell access. They can then compile the lilypond source and produce a .pdf file for printing and optionally a .midi file eg.

lilypond /home/e-smith/files/ibays/scores/mozart/K321.ly

Shell access lets users use all the features of Lilypond, such as importing a .midi file

lilypond --importmidi  /home/e-smith/files/ibays/scores/mozart/K123.midi

MediaWiki Extension

Install MediaWiki, Thank you dietmar for the pre-prepared rpm

Install the Lilypond Extension

For the extension and it's announcement see http://bugzilla.wikipedia.org/show_bug.cgi?id=189#c12

cd /opt/mediawiki/
cp LilyPond.php (to the extensions directory)
nano -w LocalSettings.php

You place special tags in your wiki article, in a nutshell,

<lilypond>
  c, d e f 
  g a b c
  b a g f 
  e d c
</lilypond>

produces:

TODO: Insert Image