FACTOID # 106: Americans are 15% more innovative than the Japanese. But in percentage terms, the Japanese grant 3.5 times more patents.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RELATED ARTICLES
People who viewed "Lilypond" also viewed:
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > Lilypond

GNU LilyPond is a free software program for engraving sheet music. It uses a simple ASCII notation for music, which is then compiled into TeX with embedded PostScript. The PostScript output can then be used to produce printable files or images. Lilypond can also automatically generate MIDI files from music specified in the LilyPond format.

Enlarge
First measures of Adeste Fidelis, generated by LilyPond

Unlike programs such as Finale and Sibelius, which feature a graphical user interface for entering notes, LilyPond focuses on producing beautiful output, comparable to professionally engraved scores. Some graphical music notation programs, such as Rosegarden and NoteEdit, can export files directly to LilyPond format.


The Mutopia project, which distributes free sheet music, uses LilyPond to typeset its music. WikiTeX, a MediaWiki interface, supports editing LilyPond notation directly in wiki articles.

Contents

Example of Lilypond input file

Lines beginning with percent sign are comments.

 % Theme to "Fire Breathers", a homebrew NES game under development. Composed % by Urpo Lankinen. % Note: The composer has made available the following source code to % the Wikipedia article under GFDL license. Other versions of this song, % which are available outside Wikipedia and its GFDL-permitted % mirrors/derivants, are typically under CC BY-SA license. % The version directive identifies the Lilypond syntax version. % This particular source file works in Lilypond 2.2.x. % Typically, there are large changes in syntax (usually for better!) % between the major releases. % The convert-ly program can be used to automatically transform the source % code to most recent version. \version "2.2.0" % This library file makes Lilypond use the Finnish note names % (for example, where Americans use "F#" and "Bb", Finns use % "Fis" and "B"). Danish note names are used by default. Other % national conventions are supported! \include "suomi.ly" % The header part is used to control the texts added to the final output. \header { title = "Theme to ``Fire Breathers!''" instrument = "For the 2A03 or SID" composer = "Urpo Lankinen" enteredby = "Urpo Lankinen" date = "June 2004" } % Here is the main melody. The character | is used for a bar check; % it's also a convenient way to display where the bars are. As you can see, % the notes are simply entered with their real names, followed by number that % shows their length. The note can have ' or , in it, meaning a leap % of octave up or down. (This tune uses relative note entry mode, which % you can also explicitly note each note's octave, for example, % c' is middle C.) As expected, a period adds a . to the note. % Parentheses show start and end of slurs, brackets show start and end % of 8th-note beams. (The beaming can be done automatically too!) % Notes are tied with ~. The "r" note is a rest. (and "h" is "b" in English.) Melody = \notes \relative c'' { \clef treble \time 3/4 \key a \minor % The piece starts with a quarter-note partial bar, "\partial 4" % tells so to Lilypond. \partial 4 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. SecondVoice = \notes \relative c { \clef bass \time 3/4 \key a \minor \partial 4 r4 | e2. | d2. | a2. | e2 a4 | e'2. | d2 f4 | e2. | r2. | f2. | d2. | a2. | e2 a4 | e'2. | d2 h4 | a2. ~ a2 r4 | \bar "|." } % And now for something really cool... % You can write a lot of different kinds of things easily - melodies, % lyrics, chords, everything. The interesting bit is that they can % always be *reused* elsewhere! Here, I define three different % accompaniment patterns, then use them throughout the accompaniment % melody. AccompA = \notes \relative c { a4 e'8 a, e' a, | } AccompB = \notes \relative c { g4 d'8 g, d' g, | } AccompC = \notes \relative c { e,4 h'8 e, h' e, | } Accompaniment = \notes \relative c { \clef bass \time 3/4 \key a \minor \partial 4 r4 | \AccompA \AccompB \AccompA \AccompA \AccompA \AccompB \AccompA \AccompA \AccompC \AccompC \AccompA \AccompA \AccompA \AccompB \AccompA | a2 r4 | \bar "|." } % Finally, there is the score block. The score block is used to % define what is actually present in the composition, and how is it % going to be printed. Here, we define three simultaneous staffs, % for melody, accompaniment and the second voice. % The score will be printed on paper, without the first line getting indented % (since there is no instrument names, we don't want the space). % We also wish to produce a MIDI output, using metronome tempo of % 120 quarters per minute. (Note that this isn't noted anywhere on the % paper - you need separate commands to add that to the score.) \score { << \new Staff \Melody \new Staff \Accompaniment \new Staff \SecondVoice >> \paper { indent = 0 } \midi { \tempo 4 = 120 } } 

Corresponding output

Rendered output


See also

External links

  • Official LilyPond website (http://lilypond.org/)
  • The LilyPond Wiki (http://afavant.elte.hu/lywiki/FrontPage)
  • Lilypond-based Musical Scores Archive (http://www.mutopiaproject.org/)
  • Denemo, a GUI for LilyPond (http://www.gnu.org/software/denemo/denemo.html).

  Results from FactBites:
 
At the Sounding Edge: LilyPond, Part 1 (2002 words)
Set to its defaults, LilyPond automatically formats most music for excellent printed output, at the same time permitting highly detailed customizations to accommodate virtually any music scoring requirement, including unusual and idiosyncratic notations.
Jumping In The LilyPond documentation includes a good tutorial guide to the basics of using the language interface.
The LilyPond documentation includes suggestions for using each filter optimally, and the reader is advised to study the current documentation for the latest directions for their best use.
NationMaster - Encyclopedia: Lilypond (1059 words)
The high-quality output of Lilypond is due to the fact that they haven't spent any time developing a GUI, but rather focused on researching excellent engraving practices and developing Lilypond to reproduce them automatically.
Lilypond is probably not for the person who likes to print up scores on the computer with a minimum of fuss.
Indeed, Rosegarden and LilyPond both use algorithms which automatically determine layout in terms of a wide range of issues including beam slope, slur slope, stem length, etc. The layout algorithms used by LilyPond are in many cases certainly more sophisticated than those used by Rosegarden.
  More results at FactBites »


 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments
Please enter the 5-letter protection code

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.