Difference between revisions of "LilyPond"

From ArchWiki
Jump to: navigation, search
(style improvements, see Help:Style)
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
[[Category:Applications]]
 
[[Category:Applications]]
== Getting Started ==
+
[[de:LilyPond]]
 +
Lilypond is a Free Software 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.
  
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]] {{Pkg|lilypond}} from the [[official repositories]].
  
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.
+
== Example Score ==
  
=== How to install? ===
+
Create a test file like:
  
For a quick start:
+
{{hc|test.ly|
 +
{
 +
c' e' g' e'
 +
}
 +
}}
  
~# pacman -S lilypond
+
To compile it, use:
  
To see how this software realy works create a text file called ‘test.ly’ and enter:
+
$ lilypond test.ly
  
~# cat > test.ly
+
It will create {{ic|test.pdf}} and {{ic|test.ps}} files that contain your score.
{
+
  c' e' g' e'
+
}
+
  
and then hit Ctrl+D to save. To process ‘test.ly’, proceed as follows:
+
== Tweaking ==
  
~# lilypond test.ly
+
=== Which editor to use? ===
  
It will create test.pdf and test.ps files. Open it with your favorite viewer.
+
* VIM
  
== Tweaking ==
+
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.
  
=== Which editor to use? ===
+
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:
  
* jEdit with lilyPondTools plugin.
+
{{hc|~/.vimrc|2=
 +
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.
 +
}}
  
~# pacman -S jedit
+
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.12.3/vim/ftplugin/lilypond.vim}} which is easy to customize.
  
Open jEdit and go to '''Plugins''' -> '''Plugin Manager'''. Select '''Install''' tab and click on LilyPondTools. Hit the '''Install''' button.
+
Click-and-point using evince.
 +
[https://github.com/markk/textedit-ly]
  
* 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.
+
* Frescobaldi
  
~# pacman -S vim
+
You can find it in [[AUR]].
 +
 
 +
* jEdit with lilyPondTools plugin.
  
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.
+
[[Install]] {{Pkg|jedit}} from the [[official repositories]].
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.
+
Open jEdit and go to ''Plugins > Plugin Manager''. Select the ''Install'' tab and click on ''LilyPondTools''. Hit the ''Install'' button.
  
 
=== Speed up writing notes ===
 
=== 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.)
+
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 usefull info ===
+
=== More useful info ===
  
* For JEdit: Under plugins install '''LookAndFeel'''. You can find good stuff under Visual.
+
* 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 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.
+
* For a tutorial on how to use this software visit LilyPond [http://lilypond.org/] website.

Latest revision as of 03:01, 12 February 2015

Lilypond is a Free Software 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.

Installation

Install lilypond from the official repositories.

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.

Tweaking

Which editor to use?

  • VIM

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 [1] 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 ~/.vimrc with your favorite editor and after editing your file should look like this:

~/.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, open PDF viewer with F6 and play midi with F4 (using timidity). A configuration file is in /usr/share/lilypond/2.12.3/vim/ftplugin/lilypond.vim which is easy to customize.

Click-and-point using evince. [2]

  • Frescobaldi

You can find it in AUR.

  • jEdit with lilyPondTools plugin.

Install 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.

Speed up writing notes

LilyComp [3] can be used to speed up writing notes. It requires python and tk. Lines 67 and 68 in lilycomp.py should be edited to enable 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 [4] website.