Line 1: |
Line 1: |
| ===Lilypond – Music notation for everyone=== | | ===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. | + | [http://lilypond.org/web/ LilyPond] is an automated engraving system. It formats music beautifully and automatically, and has a friendly syntax for its input files. |
| | | |
| Refer to the | | Refer to the |
Line 32: |
Line 32: |
| | | |
| ====MediaWiki Extension==== | | ====MediaWiki Extension==== |
| + | |
| + | Insert fragments of music or whole scores into your wiki pages. |
| + | |
| + | After installing the Mediawiki Lilypond extension you can work on your score anywhere you have browser access. |
| | | |
| =====Install===== | | =====Install===== |
Line 38: |
Line 42: |
| | | |
| * Install the Lilypond Extension | | * Install the Lilypond Extension |
− | For the extension announcement see
| + | http://www.mediawiki.org/wiki/Extension:LilyPond |
− | http://bugzilla.wikipedia.org/show_bug.cgi?id=189#c12 | |
− | | |
− | Obtain an updated extension from here, which fixes some bugs
| |
− | http://bugs.contribs.org/show_bug.cgi?id=3338
| |
| | | |
| cd /opt/mediawiki/ | | cd /opt/mediawiki/ |
Line 63: |
Line 63: |
| </lilypond> | | </lilypond> |
| | | |
− | produces:
| + | Produces: An Image |
| | | |
| [[Image:LilypondScale.png|Lilypond Scale]] | | [[Image:LilypondScale.png|Lilypond Scale]] |
Line 69: |
Line 69: |
| | | |
| * <lilymidi> | | * <lilymidi> |
| + | Produces: An image plus makes it a clickable link to a .midi file |
| | | |
| <lilymidi> | | <lilymidi> |
Line 74: |
Line 75: |
| </lilymidi> | | </lilymidi> |
| | | |
− | Produces: The above image plus makes it a clickable link to a .midi file
| |
| | | |
| * <lilybook> | | * <lilybook> |
| | | |
− | <lilymidi> | + | <lilybook> |
− | lots of code... | + | \version "2.10.29" |
| + | |
| + | \header { |
| + | title = "Mary Had a Little Lamb" |
| + | tagline = "" |
| + | } |
| + | |
| + | \paper { |
| + | ragged-right = ##t |
| + | ragged-bottom = ##t |
| + | indent = 0\mm |
| + | } |
| + | |
| + | melody = \relative c' { |
| + | e d c d | e e e e | |
| + | d d e d | c1 | |
| + | } |
| + | |
| + | text = \lyricmode { |
| + | \set stanza = "1." Ma- ry had a lit- tle lamb, |
| + | its fleece was white as snow. |
| + | } |
| + | |
| + | \book{ |
| + | \score{ << |
| + | \new Voice = "one" { \melody } |
| + | \new Lyrics \lyricsto "one" \text |
| + | >> |
| + | |
| + | \layout { } |
| + | \midi { } |
| + | } |
| + | |
| + | \markup{ |
| + | \wordwrap-string #" |
| + | Verse 2. |
| + | |
| + | Mary took it home again, |
| + | |
| + | It was against the rule." |
| + | } |
| + | } |
| </lilybook> | | </lilybook> |
| | | |
− | Produces: same as <lilymidi> | + | Produces: An Image, linked to a midi if ''' \midi { }''' is included |
| + | |
| + | [[Image:LilypondMary.png|Lilypond Song]] |
| | | |
− | For this method you enter the text of an entire .ly file | + | {{Note box| |
| + | For the <lilybook> method you enter the text of an entire .ly file |
| | | |
− | For all three methods, macro code is disabled for security reasons | + | For <lilypond> and <lilymidi> you are just entering the notes from the melody |
| | | |
| + | For all three methods, macro code is disabled for security reasons. |
| + | }} |
| | | |
| ====Further Information==== | | ====Further Information==== |