Difference between revisions of "LilyPond"

From ArchWiki
Jump to: navigation, search
m (Front-ends: link English Frescobaldi website)
(remove outdated info: textedit-ly, LilyComp and the JEdit are abandoned and not packaged)
Line 3: Line 3:
 
[[ja:LilyPond]]
 
[[ja:LilyPond]]
 
[http://lilypond.org/ LilyPond] is a free score writing application.
 
[http://lilypond.org/ LilyPond] is a free score writing application.
Its input is a plain text file in the lilypond music writing format, and its output is in either postscript or Portable Document Format.
+
Its input is a plain text file in the LilyPond music writing format, and its output is in either PostScript or PDF.
  
 
== Installation ==
 
== Installation ==
Line 30: Line 30:
 
It will create {{ic|test.pdf}} and {{ic|test.ps}} files that contain your score.
 
It will create {{ic|test.pdf}} and {{ic|test.ps}} files that contain your score.
  
== Tweaking ==
+
== Text editor support ==
  
=== Which editor to use? ===
+
LilyPond comes with modes for [[Emacs]] and [[Vim]], see the [http://lilypond.org/doc/Documentation/usage/text-editor-support documentation].
  
* VIM
+
For Vim see the filetype plugin {{ic|/usr/share/vim/vimfiles/ftplugin/lilypond.vim}} for the available key mappings.
 
 
Vim with the possibilities of compiling the code within the program along with syntax coloring tools and indenting. First install the [[vim]] editor, then go to this Lilypond website [http://lilypond.org/doc/v2.11/Documentation/user/lilypond-program/Vim-mode] and follow the instructions on how to enable the vim mode.
 
 
 
The next thing you need to do is enable the syntaxes. To do so edit {{ic|~/.vimrc}} with your favorite editor and after editing your file should look like this:
 
 
 
{{hc|~/.vimrc|2=
 
set runtimepath+=/usr/share/lilypond/2.18.2/vim/
 
syntax on " Turn on colors
 
filetype plugin on " Enables the ftplugin options
 
set autoindent " Automaticaly indent while writing.
 
}}
 
 
 
Now when you edit a {{ic|*.ly}} file you can compile your code with {{ic|F5}} button, open PDF viewer with {{ic|F6}} and play midi with {{ic|F4}} (using timidity).
 
A configuration file is in {{ic|/usr/share/lilypond/2.18.2/vim/ftplugin/lilypond.vim}} which is easy to customize.
 
 
 
Click-and-point using evince.
 
[https://github.com/markk/textedit-ly]
 
 
 
* {{AUR|frescobaldi}}
 
* {{AUR|denemo}}
 
 
 
You can find both in the [[AUR]].
 
 
 
* jEdit with lilyPondTools plugin.
 
 
 
[[Install]] {{Pkg|jedit}} from the [[official repositories]].
 
 
 
Open jEdit and go to ''Plugins > Plugin Manager''. Select the ''Install'' tab and click on ''LilyPondTools''. Hit the ''Install'' button.
 
 
 
* Emacs
 
 
 
Lilypond includes an emacs mode. Add the following line to your {{ic|~/.emacs}}:
 
 
 
{{hc|~/.emacs|2=
 
(load-library "lilypond-init.el")
 
}}
 
 
 
=== Speed up writing notes ===
 
 
 
LilyComp [http://lilycomp.sourceforge.net/] can be used to speed up writing notes. It requires [[python]] and tk. Lines 67 and 68 in {{ic|lilycomp.py}} should be edited to enable {{ic|deutsch.ly}} dictionary for sharp and flat symbols. It uses absolute notation (\relative is not used.)
 
 
 
=== More useful info ===
 
 
 
* For JEdit: Under plugins install ''LookAndFeel''. You can find good stuff under Visual.
 
For better usability my settings are: under ''Global Options > Docking'' put the ''Console'' and ''Error List'' to ''right'' and ''LilyPond PDF preview'' to ''bottom'' under ''Docking'' position. Then under ''View'' push ''Alternate docked window placement'' and ''Alternate tool bar placement'' buttons.
 
 
 
* For a tutorial on how to use this software visit LilyPond [http://lilypond.org/] website.
 
  
 
== See also ==
 
== See also ==
  
 +
* [[Wikipedia:LilyPond]]
 
* [[List of applications/Multimedia#Scorewriters]]
 
* [[List of applications/Multimedia#Scorewriters]]

Revision as of 18:41, 29 July 2018

LilyPond is a free score writing application. Its input is a plain text file in the LilyPond music writing format, and its output is in either PostScript or PDF.

Installation

Install the lilypond package.

Front-ends

  • Denemo — Music notation editor.
http://denemo.org/ || denemoAUR
  • Frescobaldi — Sheet music text editor for LilyPond files.
http://www.frescobaldi.org/index.html || frescobaldiAUR

Example Score

Create a test file like:

test.ly
{
 c' e' g' e'
}

To compile it, use:

$ lilypond test.ly

It will create test.pdf and test.ps files that contain your score.

Text editor support

LilyPond comes with modes for Emacs and Vim, see the documentation.

For Vim see the filetype plugin /usr/share/vim/vimfiles/ftplugin/lilypond.vim for the available key mappings.

See also