This is an archive copy of wikilivres.ca as of 18 February 2017 (from the WikiTeam dump). The original site is closed.

Wikilivres:Lilypond: Difference between revisions

Free texts and images.
Jump to navigation Jump to search
imported>Yann
No edit summary
imported>Yann
No edit summary
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Test Lilypond
{{en}} [http://lilypond.org/ Lilypond] is installed on Wikilivres. See the [http://lilypond.org/doc/v2.10/Documentation/user/lilypond/index.html documentation]. See also a list of [[:Category:Music sheets‎|Music sheets‎]].


<lilypond>f, d f a d f e d cis a cis e a g f e</lilypond>
{{fr}} [http://lilypond.org/ Lilypond] est installé sur Wikilives. Voir la [http://lilypond.org/doc/v2.10/Documentation/user/lilypond/index.fr.html documentation]. Voir aussi une liste de [[:Category:Music sheets‎|Partitions]].
 
'''Examples:'''
__TOC__
* [[Wikilivres:Lilypond/Example4|Example4]]
* [[Wikilivres:Lilypond/Example5|Example5]]
* [[Wikilivres:Lilypond/Example6|Example6]]


Test 2
Syntax examples:
* [[Wikilivres:Lilypond/Syntax examples|Syntax examples]]


<lilypond>
* [[Au clair de la lune]]
#!lilypond firebreathers.ly -*- coding: utf-8; -*-
%% Theme to "Fire Breathers", a homebrew NES game perpetually
%% under development.  Composed by Urpo Lankinen.


%% Note: The composer has made this source code available
== Example 1 ==
%% to Wikipedia under the GFDL license.  Other versions outside
%% Wikipedia are typically under CC BY-SA license.


%% This file uses Finnish note names (for example, where
<lilypond>f, d f a d f e d cis a cis e a g f e</lilypond>
%% Americans use "F#" and "Bb", Finns use "Fis" and "B").
%% Dutch note names are used by default.
\include "suomi.ly"


%% Optional language upgrade helper.
== Example 2 ==
\version "2.6.0"


%% The header block defines the titles and texts.
<lilypond>
\header {
\relative c' {  
    title = "Theme to ``Fire Breathers!''"
e16-.->a(b gis)a-.->c(d b)c-.->e(f dis)e-.->a(b a)
    instrument = "For the 2A03 or SID"
gis(b e)e,(gis b)b,(e gis)gis,(b e)e,(gis? b e)
    composer = "Urpo Lankinen"
}
    enteredby = "Urpo Lankinen"
</lilypond>
    updatedby = "Jan Nieuwenhuizen"
    date = "June 2005"
}


Melody = \relative c'' {
== Example 3 ==
  \clef treble
<lilybook>
  \time 3/4
\version "2.10.29"
  \key a \minor


  %% The piece starts with a quarter-note partial bar, "\partial 4"
\header {
  %% tells so to LilyPond.
title = "Mary Had a Little Lamb"
  \partial 4
  tagline = ""
  a4 | e'4.( d8[ c]) r8 | d4.( c8[ h]) r8 | a2. | e2
  a4 | e'4.( d8[ c]) r8 | d4.( e8[ f]) r8 | e2. | r2
  e4 | f4.( e8[ d]) r8 | d4.( c8[ h]) r8 | a2. | e2
  a4 | e'4.( d8[ c]) r8 | d4.( c8[ h]) r8 | a2. ~ a2 r4 | \bar "|."
}
}


%% This is the second voice.
\paper {
SecondVoice = \relative c {
ragged-right = ##t
  \clef bass
ragged-bottom = ##t
  \time 3/4
indent = 0\mm
  \key a \minor
}


  \partial 4
melody = \relative c' {
    r4 | e2.              | d2.            | a2. | e2
e d c d | e e e e |
    a4 | e'2.            | d2      f4    | e2. | r2.
  d d e d | c1 |
      | f2.            | d2.            | a2. | e2
    a4 | e'2.            | d2      h4    | a2. ~ a2 r4 | \bar "|."
}
}
 
   
 
text = \lyricmode {
%% Melodies, lyrics and chords can be assigned to a variable and then
\set stanza = "1." Ma- ry had a lit- tle lamb,
%% be *reused* elsewhere. Here are three different accompaniment
  its fleece was white as snow.
%% patterns, which are used throughout the accompaniment melody.
}
AccompA = \relative c { a4 e'8 a, e' a, | }
   
AccompB = \relative c { g4 d'8 g, d' g, | }
\book{
AccompC = \relative c { e,4 h'8 e, h' e, | }
  \score{ <<
 
    \new Voice = "one" { \melody }
Accompaniment = {
    \new Lyrics \lyricsto "one" \text
  \clef bass
    >>
  \time 3/4
  \key a \minor
    \layout { }
 
     \midi { }
  \partial 4
  }
     r4 | \AccompA \AccompB \AccompA \AccompA
        \AccompA \AccompB \AccompA \AccompA
  \markup{
        \AccompC \AccompC \AccompA \AccompA
    \wordwrap-string #"
        \AccompA \AccompB \AccompA | a2 r4 | \bar "|."
    Verse 2.
 
    All the children laughed and played,
   
    To see a lamb at school."
  }
}
}
 
</lilybook>
%% The top level music definition.
<<
  \new Staff \Melody
  \new Staff \Accompaniment
  \new Staff \SecondVoice
>>
</lilypond>

Latest revision as of 00:58, 20 January 2008

(English)  Lilypond is installed on Wikilivres. See the documentation. See also a list of Music sheets‎.

(Français)  Lilypond est installé sur Wikilives. Voir la documentation. Voir aussi une liste de Partitions.

Examples:

Syntax examples:

Example 1

<lilypond>f, d f a d f e d cis a cis e a g f e</lilypond>

Example 2

<lilypond> \relative c' { e16-.->a(b gis)a-.->c(d b)c-.->e(f dis)e-.->a(b a) gis(b e)e,(gis b)b,(e gis)gis,(b e)e,(gis? b e) } </lilypond>

Example 3

<lilybook> \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.
 
   All the children laughed and played,
   
   To see a lamb at school."
 }

} </lilybook>