Line 42: |
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 97: |
Line 93: |
| | | |
| melody = \relative c' { | | melody = \relative c' { |
− | e d c d | e e e e |
| + | e d c d | e e e e | |
− | d d e d | c1 |
| + | d d e d | c1 | |
− | }
| + | } |
| | | |
− | text = \lyricmode {
| + | text = \lyricmode { |
− | \set stanza = "1." Ma- ry had a lit- tle lamb,
| + | \set stanza = "1." Ma- ry had a lit- tle lamb, |
− | its fleece was white as snow.
| + | its fleece was white as snow. |
− | }
| + | } |
| | | |
− | \book{
| + | \book{ |
− | \score{ <<
| + | \score{ << |
− | \new Voice = "one" { \melody }
| + | \new Voice = "one" { \melody } |
− | \new Lyrics \lyricsto "one" \text
| + | \new Lyrics \lyricsto "one" \text |
− | >>
| + | >> |
− | \layout { }
| + | |
− | \midi { }
| + | \layout { } |
− | }
| + | \midi { } |
− | \markup{
| + | } |
− | \wordwrap-string #"
| + | |
− | Verse 2.
| + | \markup{ |
| + | \wordwrap-string #" |
| + | Verse 2. |
| + | |
| + | Mary took it home again, |
| | | |
− | Mary took it home again,
| + | It was against the rule." |
− | | + | } |
− | It was against the rule."
| + | } |
− | }
| |
− | }
| |
| </lilybook> | | </lilybook> |
| | | |
Line 129: |
Line 127: |
| [[Image:LilypondMary.png|Lilypond Song]] | | [[Image:LilypondMary.png|Lilypond Song]] |
| | | |
− | Notes:
| + | {{Note box| |
− | | |
| For the <lilybook> method you enter the text of an entire .ly file | | For the <lilybook> method you enter the text of an entire .ly file |
| | | |
| For <lilypond> and <lilymidi> you are just entering the notes from the melody | | For <lilypond> and <lilymidi> you are just entering the notes from the melody |
| | | |
− | For all three methods, macro code is disabled for security reasons | + | For all three methods, macro code is disabled for security reasons. |
| + | }} |
| | | |
| ====Further Information==== | | ====Further Information==== |