| [ < ] | [ > ] | [ << ] | [Fel] | [ >> ] | [Címoldal] | [Tartalom] | [Tárgymutató] | [ ? ] |
@translationof Compiling a file
| 1.1.1 Zene bevitele | ||
| 1.1.2 Mac OS X | ||
| 1.1.3 Windows | ||
| 1.1.4 Parancssor |
| [ < ] | [ > ] | [ << ] | [Fel] | [ >> ] | [Címoldal] | [Tartalom] | [Tárgymutató] | [ ? ] |
@translationof Entering input
| Kimenet előállítása |
A LilyPond bemeneti fájljai egyszerű szöveges állományok. Egy kotta létrehozásához egy bemeneti fájlban (másnéven forrásfájlban) kell azt szöveges formában leírni. „Fordítás” a neve annak a folyamatnak, melynek során egy LilyPond formátumú forrásfájlból egy nyomtatható kotta és (szabadon választhatóan) egy meghallgatható MIDI fájl áll elő.
Első példánk megmutatja, hogy néz ki egy egyszerű bemenet. A LilyPond forrásfájlba ezt írva:
\version "2.21.3"
{
c' e' g' e'
}
|
az alábbi eredményt kapjuk:
Figyelem: A LilyPondban a hangok és a dalszöveg köré mindig { kapcsos zárójeleket } kell írni. A kapcsos zárójeleket legtöbbször szóközzel vesszük körül, hacsak a sor elején vagy végén nem állnak, hogy környezetükkel ne folyjanak egybe, így kétértelműséget okozván. A tankönyv példáiban olykor a rövidség kedvéért elhagyjuk a kapcsos zárójeleket, de a forrásfájlokban nem szabad elfelejteni kitenni őket! A Hogyan olvassuk a dokumentációt? c. fejezetben olvasható több információ a tankönyv példáiról és megjelenítésük módjáról.
Továbbá a LilyPond bemenete érzékeny a kis- és nagybetűk különbségére:
{ c d e } érvényes bemenet; { C D E } hibát
eredményez.
| [ < ] | [ > ] | [ << ] | [Fel] | [ >> ] | [Címoldal] | [Tartalom] | [Tárgymutató] | [ ? ] |
@translationof Producing output
Ez a szakasz arról szól, hogy milyen parancsokat kell futtatni a kotta előállításához és a kimenet megtekintéséhez a felhasználó operációs rendszerétől függően.
Microsoft Windows (graphical)
Minden operációs rendszr (parancssor)
Bizonyos szövegszerkesztőkbe beépíthető LilyPond támogatás, ami hatékonyabb szerkesztést tesz lehetővé; erről a (usage)Text editor support section ‘Text editor support’ in Az alkalmazás használata c. fejezet ír.
Figyelem: Amikor a LilyPond első alkalommal fut, egy-két percig várni kell, amíg megvizsgálja a rendszer betűtípusait. Ezután természetesen sokkal gyorsabban fog futni!
| [ < ] | [ > ] | [ << ] | [Fel] | [ >> ] | [Címoldal] | [Tartalom] | [Tárgymutató] | [ ? ] |
@translationof MacOS X
Figyelem: These instructions assume that you are using the LilyPond application. If you are using any of the programs described in (general)Easier editing section ‘Easier editing’ in Általános információk, consult the documentation for those programs should you have any problems.
Double click the LilyPond.app, an example file will open.
From the menus along the top left of your screen, select
File > Save.
Choose a name for your file, for example ‘test.ly’.
From the same menus, select
Compile > Typeset.
A new window will open showing a progress log of the compilation of the file you have just saved.
Once the compilation has finished, a PDF file will be created with the same name as the original file and will be automatically opened in the default PDF viewer and displayed on your screen.
To create new files for LilyPond, begin by selecting
File > New
or File > Open to open and edit existing files you have
saved previously.
You must save any new edits you make to your file before you
Compile > Typeset and if the PDF file is not displayed
check the window with the progress log for any errors.
If you are not using the default Preview PDF viewer that comes with the Mac Operating system and you have the PDF file generated from a previous compilation open, then any further compilations may fail to generate an update PDF until you close the original.
| [ < ] | [ > ] | [ << ] | [Fel] | [ >> ] | [Címoldal] | [Tartalom] | [Tárgymutató] | [ ? ] |
Figyelem: These instructions assume that you are using the built-in LilyPad editor. If you are using any of the programs described in (general)Easier editing section ‘Easier editing’ in Általános információk, consult the documentation for those programs should you have any problems.
Double-click the LilyPond icon on your desktop and an example file will open.
From the menus that appear along the top of the example file,
select File > Save as. Do not use the File > Save
for the example file as this will not work until you have given it a
valid LilyPond file name.
Choose a name for your file, for example ‘test.ly’.
To turn your LilyPond file into a music score, you need to compile it. This can be done a number of ways – using drag and drop, with right-click, double-clicking or using the command line (a DOS box). We’ll look at the first three to start with.
1. Drag-and-drop the file directly onto the LilyPond icon on the desktop.
Not much will seem to happen, but after a short while, you should see two new files on your desktop – ‘test.log’ and ‘test.pdf’.
2. Right-click on the file and from the pop-up context menu and
choose Generate PDF.
3. Or simply double-click the ‘test.ly’.
‘test.pdf’ contains the engraved ‘test.ly’ file. Double-click it and it should open in your PDF viewer:
To create a new file, begin by selecting File > New from
within any previously created file or File > Open to open and
edit any files you have saved before. You can also edit a file by
right-clicking it and selecting Edit source.
You must save any edits you make before you try to compile your file. If the PDF file is not created or the output is not what you expected, check the log file that will have been created during the compilation attempt for any errors.
This log file is overwritten each time you compile your LilyPond file.
If you are viewing your file in a PDF viewer, then you must close the PDF if you wish to try a new compilation as it may fail to create the new PDF while it is still being viewed.
| [ < ] | [ > ] | [ << ] | [Fel] | [ >> ] | [Címoldal] | [Tartalom] | [Tárgymutató] | [ ? ] |
@translationof Command-line
Figyelem: These instructions assume that you are familiar with command-line programs. If you are using any of the programs described in (general)Easier editing section ‘Easier editing’ in Általános információk, consult the documentation for those programs should you have any problems.
Create a text file called ‘test.ly’ and enter:
\version "2.20.0"
{
c' e' g' e'
}
|
To process ‘test.ly’, type the following at the command prompt:
lilypond test.ly |
You will see something resembling:
GNU LilyPond 2.20.0 Processing `test.ly' Parsing... Interpreting music... Preprocessing graphical objects... Solving 1 page-breaking chunks...[1: 1 pages] Drawing systems... Layout output to `test.ps'... Converting to `./test.pdf'... Success: compilation successfully completed |
You may view or print the resulting ‘test.pdf’.
| [ < ] | [ > ] | [ << ] | [Fel] | [ >> ] |
This document was generated by gub on július 13, 2020 using texi2html 1.82.
Más nyelvek: English, català, česky, deutsch, español, français, italiano, 日本語, nederlands.
Az automatikus nyelvválasztásról.