LilyPond explained

LilyPond
Developer:David Kastrup, Werner Lemberg, Han-Wen Nienhuys, Jan Nieuwenhuizen, Carl Sorensen, Janek Warchoł, [1]
Programming Language:C++, Scheme, Metafont, PostScript, Python[2]
Size:20–100 MB
Standard:EPS, MIDI, MusicXML, PDF, PS, SVG
Language:Catalan, Dutch, English, French, German, Hungarian, Italian, Japanese, Spanish
Genre:Music software, scorewriter
License:GPL-3.0-or-later[3]

LilyPond is a computer program and file format for music engraving. One of LilyPond's major goals is to produce scores that are engraved with traditional layout rules, reflecting the era when scores were engraved by hand.

LilyPond is cross-platform, and is available for several common operating systems; released under the terms of the GNU General Public License, LilyPond is free software and part of the GNU Project.

History

The LilyPond project was started in 1996 by Han-Wen Nienhuys and Jan Nieuwenhuizen, after they decided to abandon work on MPP (MusiXTeX PreProcessor), a project they began collaborating on in 1995.[4] [5] Its name was inspired both by the Rosegarden project and an acquaintance of Nienhuys and Nieuwenhuizen named Suzanne, a name that means lily in Hebrew (Hebrew: [[wikt:שושנה|שׁוֹשַׁנָּה]]).[6]

Version 1.0

LilyPond 1.0 was released on July 31, 1998, highlighting the development of a custom music font, Feta, and the complete separation of LilyPond from MusiXTeX.[7]

Version 2.0

LilyPond 2.0 was released on September 24, 2003, announcing a simplified syntax model and a much more complete set of facilities for notating various styles of music.[8]

Design

LilyPond is mostly written in C++ and uses Scheme (interpreted by GNU Guile) as its extension language, allowing for user customization.[9] It has a relatively large codebase; as of March 10, 2017, the source includes over 600,000 lines of C++, 140,000 lines of Scheme, and 120,000 lines of Python code.[10]

It uses a simple text notation for music input, which LilyPond interprets and processes in a series of stages.[11] In the final stage, music notation is output to PDF (via PostScript) or other graphical formats, such as SVG or PNG. LilyPond can also generate MIDI files that correspond to the music notation output.

LilyPond is a text-based application, so it does not contain its own graphical user interface to assist with score creation. (However, a text-editor based "LilyPad" GUI for Windows and MacOS is included by default on these systems.) It does, however, have a flexible input language that strives to be simple, easing the learning curve for new users. LilyPond adheres to the WYSIWYM paradigm; the workflow for typesetting music notation with LilyPond is similar to that of preparing documents with LaTeX.

LilyPond supports experimental musical notation. Its guitar facilities support alternative tunings, such as major-thirds tuning.[12]

Software features

LilyPond's primary goal is to produce output comparable to professionally engraved scores instead of output that looks mechanical and computer-generated. An essay from the LilyPond website, written by LilyPond developers, explains some typographical issues addressed by LilyPond:[13]

Overview of input syntax

The native input language for LilyPond is comprehensive, and consists of many commands needed for expressing any sort of articulation, dynamic, meter, etc. It is similar to that of TeX. The ability to embed Scheme code within a LilyPond source file permits arbitrary extensions to the input language and assists with algorithmic composition. Some general syntactic features are listed below.

LilyPond's interface with Pango requires the input character encoding to be UTF-8.[20] One benefit of this is that more than one language can be included in the same source file.

Example of LilyPond input file

\version "2.22.2"

\include "english.ly"

\header

\paper

\score

More complex output

Lilypond can also create extensively customised output. An example is the short extract of a Karlheinz Stockhausen piano piece below.

Collaboration with other projects

Several graphical scorewriters—such as Rosegarden, NoteEdit, Canorus, Denemo, and TuxGuitar—can export files directly to LilyPond format. Other graphical applications serve as front ends to LilyPond, including Frescobaldi and the LilyPondTool plugin for jEdit. Denemo integrates the PDF output of LilyPond in its display, allowing some editing operations on the final typeset score.

The Mutopia Project, which distributes free content sheet music, uses LilyPond to typeset its music, as does Musipedia, a collaborative music encyclopedia.

Emacs' org-mode contains support for embedding LilyPond scores into documents.[21]

OOoLilyPond, a LibreOffice extension provides support for calling LilyPond to embed scores into documents.[22]

Integration into MediaWiki

Lilypond is available in MediaWiki via the code.This, for example, transforms the notation

\relative c'

into

\relative c'

The above excerpt is a simplified version of Solfeggio in C Minor by C.P.E. Bach. More complex scores, including lyrics, are also possible within MediaWiki wikis.

Integration into text using lilypond-book

Integration of LilyPond musical elements into various document formats (both TeX-based systems such as LaTeX and Texinfo, and also DocBook and HTML pages) is natively supported through the companion program lilypond-book, developed and maintained by the LilyPond community.[23] This allows users to embed musical elements within texts, such as musicology, song booklets, work sheets for teaching, and school examinations.

Integration into LaTeX

For integration into the LaTeX document preparation system, lyLuaTeX has been developed as a LuaLaTeX package to embed musical elements within texts. It includes features for matching layout and appearance of the musical elements with the surrounding text document.[24] Music elements may consist of music symbols, song lyrics, guitar chords diagrams, lead sheets, music excerpts, guitar tablatures, or multi-page scores.

Comparison to other scorewriters

Finale and Sibelius are two proprietary scorewriters often compared to LilyPond. Andrew Hawryluk, a LilyPond user, wrote a series of articles comparing output quality between Finale and LilyPond.[25]

Another scorewriter with comparable features to LilyPond is SCORE, but SCORE relies on manual positioning more than Lilypond does.

See also Comparison of scorewriters.

See also

External links

Notes and References

  1. Web site: Authors . LilyPond Development team . March 21, 2015.
  2. Web site: Source tarball. lilypond.org. March 4, 2016.
  3. Web site: LICENSE - lilypond.git - GNU LilyPond. git.savannah.gnu.org.
  4. Web site: GNU LilyPond Learning Manual: Preface . December 23, 2017 .
  5. Web site: MusiXTeX PreProcessor README . . March 31, 2010 .
  6. Web site: Kroger. Pedro. Re: The origin of the name lilypond. lilypond-user mailing list. lists.gnu.org. March 19, 2014. 2004.
  7. GNU LilyPond 1.0 released . July 31, 1998 . February 16, 2010 . gnu-music-discuss . Nienhuys . Han-Wen .
  8. LilyPond 2.0 – make beautiful music prints . September 24, 2003 . February 16, 2010 . info-lilypond . Nienhuys . Han-Wen .
  9. Web site: LilyPond programming languages . March 21, 2015 .
  10. Web site: GNU LilyPond Music Typesetter – Code Analysis . July 25, 2017 .
  11. Web site: Overview of LilyPond architecture . March 21, 2015 .
  12. Griewank . Andreas . Tuning guitars and reading music in major thirds . January 4, 2010 . Matheon Preprints . 695 . DFG research center "MATHEON, Mathematics for key technologies" . Berlin, Germany . January 14, 2020.
  13. Web site: LilyPond - Essay on automated music engraving. December 23, 2017.
  14. Web site: Proportional notation . March 21, 2015 .
  15. Web site: LilyPond Learning Manual: 1.2.2 Working on input files . March 21, 2015 .
  16. Web site: LilyPond Notation Reference: 1.1.1 Writing pitches . March 21, 2015 .
  17. Web site: LilyPond Notation Reference: 1.3.1 Expressive marks attached to notes . March 21, 2015 .
  18. Web site: LilyPond Notation Reference: 1.3.2 Expressive marks as curves . March 21, 2015 .
  19. Web site: LilyPond Notation Reference: 1.2.4 Beams . March 21, 2015 .
  20. Web site: LilyPond Notation Reference: 3.3.3 Text encoding . March 21, 2015 .
  21. Web site: org-babel lilypond language module.. December 17, 2018. GitHub. November 30, 2019.
  22. Web site: OOoLilyPond: Creating musical snippets in LibreOffice documents . Klaus Blum . April 18, 2017 . October 12, 2017 .
  23. Web site: LilyPond Usage manual . LilyPond community . 1996–2020 .
  24. Web site: LyLuaTeX 1.0f . Peron . Fr. Jacques . Liska . Urs . Springuel . Br. Samuel . May 27, 2019 . Comprehensive TeX Archive Network (CTAN) . April 16, 2020 .
  25. Web site: Hawryluk . Andrew . Finale and LilyPond . February 15, 2010 .