Difference between revisions of "LilyPond"

From ArchWiki
Jump to: navigation, search
m (Emacs lilypond-mode)
 
(32 intermediate revisions by 18 users not shown)
Line 1: Line 1:
[[Category:Software]]
+
[[Category:Music]]
{{i18n|LilyPond}}
+
[[de:LilyPond]]
== Getting Started ==
+
[[ja:LilyPond]]
 +
[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 PDF.
  
Searching for a good software and not trash looking for writing sheet music in linux? '''LilyPond!'''
+
== Installation ==
Are you tired of pointing and clicking? '''LilyPond!'''
 
Are you tired of having dual-boot systems so you could just write music? '''LilyPond!'''
 
Are you tired of cracks and illegal software? '''LilyPond!'''
 
  
=== Torn between two operating systems. ===
+
[[Install]] the {{Pkg|lilypond}} package.
  
My only barrier on deleting Windows from my hard disk was that i am an artist. I was searching for a good comercial software for writing sheet music. I was waiting for years on Sibelius Software to give a port for linux but like they didn't care. But due to their lack of interest i have found this amazing software that i could only dream off.
+
=== Front-ends ===
  
=== How to install? ===
+
* {{App|[[Wikipedia:Denemo|Denemo]]|Supports keyboard, MIDI and acoustic input, written in C.|http://denemo.org/|{{AUR|denemo}}}}
 +
* {{App|[[Wikipedia:Frescobaldi (software)|Frescobaldi]]|Provides music view with two-way point & click, MIDI capturing and playback, written in Python with PyQt.|http://www.frescobaldi.org/index.html|{{AUR|frescobaldi}}}}
  
For a quick start:
+
== Usage ==
  
~# pacman -S lilypond
+
Create a test file like:
  
To see how this software realy works create a text file called ‘test.ly’ and enter:
+
{{hc|test.ly|
 +
{
 +
c' e' g' e'
 +
}
 +
}}
  
~# cat > test.ly
+
To compile it, use:
{
 
  c' e' g' e'
 
}
 
  
and then hit Ctrl+D to save. To process ‘test.ly’, proceed as follows:
+
$ lilypond test.ly
  
~# lilypond test.ly
+
It will create {{ic|test.pdf}} and {{ic|test.ps}} files that contain your score.
  
It will create test.pdf and test.ps files. Open it with your favorite viewer.
+
LilyPond provides {{man|1|musicxml2ly}} to convert [[Wikipedia:MusicXML|MusicXML]] to the LilyPond format.
  
== Tweaking ==
+
For more information, see {{ic|info lilypond}}, {{man|1|lilypond}} and the [http://lilypond.org/manuals.html documentation].
  
=== Which editor to use? ===
+
== Text editor support ==
  
* jEdit with lilyPondTools plugin.
+
LilyPond comes with modes for [[Emacs]] and [[Vim]], see the [http://lilypond.org/doc/Documentation/usage/text-editor-support documentation].
  
~# pacman -S jedit
+
For Vim see the filetype plugin {{ic|/usr/share/vim/vimfiles/ftplugin/lilypond.vim}} for the available key mappings.
  
Open jEdit and go to '''Plugins''' -> '''Plugin Manager'''. Select '''Install''' tab and click on LilyPondTools. Hit the '''Install''' button.
+
=== Emacs {{ic|lilypond-mode}} ===
  
* If you do not like Java, use Vim with the possibilities of compiling the code within the program along with syntax coloring tools and indenting. First install vim editor.
+
{{Pkg|lilypond}} package installs some [[Emacs]] files including {{ic|/usr/share/emacs/site-lisp/lilypond-mode.el}}.
  
~# pacman -S vim
+
To use {{ic|lilypond-mode}}, firstly '''M-x load-library <RET> lilypond-mode <RET>''' then again '''M-x lilypond-mode <RET>'''.
  
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.
+
== See also ==
The next thing you need to do is enable the syntaxses. To do so edit ~/.vimrc with your favorite editor and after editing your file should look like this:
 
~# nano ~/.vimrc
 
set runtimepath+=/usr/share/lilypond/2.12.3/vim/
 
syntax on " Turn on colors
 
filetype plugin on " Enables the ftplugin options
 
set autoindent " Automaticaly indent while writing.
 
  
Now when you edit a *.ly file you can compile your code with <F5> button. Config file is in "/usr/share/lilypond/2.12.3/vim/ftplugin/lilypond.vim" and you can read your options there and edit it.
+
* [[Wikipedia:LilyPond]]
 
+
* [[List of applications/Multimedia#Scorewriters]]
=== Speed up writing notes ===
 
 
 
One other thing that i discoverd is LilyComp [http://lilycomp.sourceforge.net/]. Its purpose is to speed up writing notes. You need python and tk to use it. I had to edit two lines (67 and 68) in lilycomp.py to enable deutsch.ly dictionary for sharp and flat symbols. It uses absolute notation (\relative is not used.)
 
 
 
=== More usefull 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 tutorial on how to use this software visit LilyPond [http://lilypond.org/] website.
 

Latest revision as of 03:35, 20 September 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 — Supports keyboard, MIDI and acoustic input, written in C.
http://denemo.org/ || denemoAUR
  • Frescobaldi — Provides music view with two-way point & click, MIDI capturing and playback, written in Python with PyQt.
http://www.frescobaldi.org/index.html || frescobaldiAUR

Usage

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.

LilyPond provides musicxml2ly(1) to convert MusicXML to the LilyPond format.

For more information, see info lilypond, lilypond(1) and the documentation.

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.

Emacs lilypond-mode

lilypond package installs some Emacs files including /usr/share/emacs/site-lisp/lilypond-mode.el.

To use lilypond-mode, firstly M-x load-library <RET> lilypond-mode <RET> then again M-x lilypond-mode <RET>.

See also