]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/de/user/templates.itely
75e9f7da42ff344f7057c9ac428471ddf38174fc
[lilypond.git] / Documentation / de / user / templates.itely
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @c This file is part of lilypond.tely
3 @ignore
4     Translation of GIT committish: 2ae5726ea4fcbcd40e42678db32d7da3227ef44a
5
6     When revising a translation, copy the HEAD committish of the
7     version that you are working on.  See TRANSLATION for details.
8 @end ignore
9
10 @c \version "2.11.51"
11
12 @node Templates
13 @appendix Templates
14
15 Dieser Abschnitt des Handbuches enthält Vorlagen, in denen die 
16 LilyPond-Partitur schon eingerichtet ist. Sie müssen nur noch Ihre 
17 Noten einfügen, die Datei mit LilyPond übersetzen und sich an dem 
18 schönen Notenbild erfreuen!
19
20 @c bad node name for ancient notation to avoid confict
21 @menu
22 * Single staff::                
23 * Piano templates::             
24 * String quartet::              
25 * Vocal ensembles::             
26 * Ancient notation templates::  
27 * Jazz combo::                  
28 * Lilypond-book templates::     
29 @end menu
30
31
32 @node Single staff
33 @appendixsec Single staff
34 @appendixsubsec Notes only
35
36 Das erste Beispiel zeigt ein Notensystem mit Noten, passend für ein 
37 Soloinstrument oder ein Melodiefragment. Kopieren Sie es und fügen 
38 Sie es in Ihre Datei ein, schreiben Sie die Noten hinzu, und Sie haben 
39 eine vollständige Notationsdatei.
40
41 @lilypond[quote,verbatim,ragged-right]
42 \version "2.11.51"
43 melody = \relative c' {
44    \clef treble
45    \key c \major
46    \time 4/4
47
48    a4 b c d
49 }
50
51 \score {
52    \new Staff \melody
53    \layout { }
54    \midi {}
55 }
56 @end lilypond
57
58 @appendixsubsec Notes and lyrics
59
60 Das nächste Beispiel zeigt eine einfache Melodie mit Text. Kopieren 
61 Sie es in Ihre Datei, fügen Sie Noten und Text hinzu und übersetzen 
62 Sie es mit LilyPond. In dem Beispiel wird die automatische 
63 Balkenverbindung ausgeschaltet (mit dem Befehl @code{\autoBeamOff}), 
64 wie es für Vokalmusik üblich ist. 
65 Wenn Sie die Balken wieder einschalten wollen, müssen Sie die 
66 entsprechende Zeile entweder ändern oder auskommentieren.
67
68 @lilypond[quote,verbatim,ragged-right]
69 \version "2.11.51"
70 melody = \relative c' {
71    \clef treble
72    \key c \major
73    \time 4/4
74
75    a4 b c d
76 }
77
78 text = \lyricmode {
79    Aaa Bee Cee Dee
80 }
81
82 \score{
83    <<
84       \new Voice = "one" {
85          \autoBeamOff
86          \melody
87       }
88       \new Lyrics \lyricsto "one" \text
89    >>
90    \layout { }
91    \midi { }
92 }
93 @end lilypond
94
95 @appendixsubsec Notes and chords
96
97 Wollen Sie ein Liedblatt mit Melodie und Akkorden schreiben? Hier ist 
98 das richtige Beispiel für Sie!
99
100 @lilypond[quote,verbatim,ragged-right]
101 \version "2.11.51"
102 melody = \relative c' {
103    \clef treble
104    \key c \major
105    \time 4/4
106
107    f4 e8[ c] d4 g |
108    a2 ~ a2 |
109 }
110
111 harmonies = \chordmode {
112    c4:m f:min7 g:maj c:aug d2:dim b:sus
113 }
114
115 \score {
116    <<
117       \new ChordNames {
118          \set chordChanges = ##t
119          \harmonies
120       }
121    \new Staff \melody
122    >>
123
124    \layout{ }
125    \midi { }
126 }
127 @end lilypond
128
129 @appendixsubsec Notes, lyrics, and chords.
130
131 Mit diesem Beispiel können Sie einen Song mit Melodie, 
132 Text und Akkorden schreiben.
133
134 @lilypond[quote,verbatim,ragged-right]
135 \version "2.11.51"
136 melody = \relative c' {
137    \clef treble
138    \key c \major
139    \time 4/4
140
141    a b c d
142 }
143
144 text = \lyricmode {
145    Aaa Bee Cee Dee
146 }
147
148 harmonies = \chordmode {
149    a2 c2
150 }
151
152 \score {
153    <<
154       \new ChordNames {
155          \set chordChanges = ##t
156          \harmonies
157       }
158    \new Voice = "one" {
159       \autoBeamOff
160       \melody
161    }
162    \new Lyrics \lyricsto "one" \text
163    >>
164    \layout { }
165    \midi { }
166 }
167 @end lilypond
168
169 @node Piano templates
170 @appendixsec Piano templates
171 @appendixsubsec Solo piano
172
173 Hier kommt ein einfaches Klaviersystem.
174
175 @lilypond[quote,verbatim,ragged-right]
176 \version "2.11.51"
177 upper = \relative c'' {
178    \clef treble
179    \key c \major
180    \time 4/4
181
182    a b c d
183 }
184
185 lower = \relative c {
186    \clef bass
187    \key c \major
188    \time 4/4
189
190    a2 c
191 }
192
193 \score {
194    \new PianoStaff <<
195       \set PianoStaff.instrumentName = "Piano  "
196       \new Staff = "upper" \upper
197       \new Staff = "lower" \lower
198    >>
199    \layout { }
200    \midi { }
201 }
202 @end lilypond
203
204 @appendixsubsec Piano and melody with lyrics
205
206 Das nächste Beispiel ist typisch für ein Lied: Im oberen System die 
207 Melodie mit Text, darunter Klavierbegleitung.
208
209 @lilypond[quote,verbatim,ragged-right]
210 \version "2.11.51"
211 melody = \relative c'' {
212    \clef treble
213    \key c \major
214    \time 4/4
215
216    a b c d
217 }
218
219 text = \lyricmode {
220    Aaa Bee Cee Dee
221 }
222
223 upper = \relative c'' {
224    \clef treble
225    \key c \major
226    \time 4/4
227
228    a b c d
229 }
230
231 lower = \relative c {
232    \clef bass
233    \key c \major
234    \time 4/4
235
236    a2 c
237 }
238
239 \score {
240    <<
241       \new Voice = "mel" {
242           \autoBeamOff
243           \melody
244       }
245       \new Lyrics \lyricsto mel \text
246
247       \new PianoStaff <<
248          \new Staff = "upper" \upper
249          \new Staff = "lower" \lower
250       >>
251    >>
252    \layout {
253       \context { \RemoveEmptyStaffContext }
254    }
255    \midi { }
256 }
257 @end lilypond
258
259
260 @appendixsubsec Piano centered lyrics
261
262 Anstatt ein eigenes System für Melodie und Text zu schreiben, können 
263 Sie den Text auch zwischen die beiden Klaviersysteme schreiben
264 (und damit das zusätzliche System für die Gesangstimme auslassen).
265
266 @lilypond[quote,verbatim,ragged-right]
267 \version "2.11.51"
268 upper = \relative c'' {
269    \clef treble
270    \key c \major
271    \time 4/4
272
273    a b c d
274 }
275
276 lower = \relative c {
277    \clef bass
278    \key c \major
279    \time 4/4
280
281    a2 c
282 }
283
284 text = \lyricmode {
285    Aaa Bee Cee Dee
286 }
287
288 \score {
289   \new GrandStaff <<
290     \new Staff = upper { \new Voice = "singer" \upper }
291     \new Lyrics \lyricsto "singer" \text
292     \new Staff = lower {
293       \clef bass
294       \lower
295     }
296   >>
297   \layout {
298     \context { \GrandStaff \accepts "Lyrics" }
299     \context { \Lyrics \consists "Bar_engraver" }
300   }
301   \midi { }
302 }
303 @end lilypond
304
305
306 @appendixsubsec Piano centered dynamics
307
308 In der meisten Klaviernotation werden die Dynamikzeichen zwischen 
309 den beiden Systemen zentriert. Für LilyPond muss man die Einstellungen 
310 etwas anpassen, aber Sie können ja das angepasste Beispiel von hier 
311 kopieren.
312
313 @lilypond[quote,verbatim,ragged-right]
314 \version "2.11.51"
315 upper = \relative c'' {
316   \clef treble
317   \key c \major
318   \time 4/4
319
320   a b c d
321 }
322
323 lower = \relative c {
324   \clef bass
325   \key c \major
326   \time 4/4
327
328   a2 c
329 }
330
331 dynamics = {
332   s2\fff\> s4
333   s\!\pp
334 }
335
336 pedal = {
337   s2\sustainOn s2\sustainOff
338 }
339
340 \score {
341   \new PianoStaff <<
342     \new Staff = "upper" \upper
343     \new Dynamics = "dynamics" \dynamics
344     \new Staff = "lower" <<
345       \clef bass
346       \lower
347     >>
348     \new Dynamics = "pedal" \pedal
349   >>
350   \layout {
351     \context {
352       \type "Engraver_group"
353       \name Dynamics
354       \alias Voice % So that \cresc works, for example.
355       \consists "Output_property_engraver"
356
357       \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
358       \override DynamicLineSpanner #'Y-offset = #0
359       pedalSustainStrings = #'("Ped." "*Ped." "*")
360       pedalUnaCordaStrings = #'("una corda" "" "tre corde")
361
362       \consists "Piano_pedal_engraver"
363       \consists "Script_engraver"
364       \consists "Dynamic_engraver"
365       \consists "Text_engraver"
366
367       \override TextScript #'font-size = #2
368       \override TextScript #'font-shape = #'italic
369
370       \consists "Skip_event_swallow_translator"
371
372       \consists "Axis_group_engraver"
373     }
374     \context {
375       \PianoStaff
376       \accepts Dynamics
377     }
378   }
379 }
380 \score {
381   \new PianoStaff <<
382     \new Staff = "upper" << \upper \dynamics >>
383     \new Staff = "lower" << \lower \dynamics >>
384     \new Dynamics = "pedal" \pedal
385   >>
386   \midi {
387     \context {
388       \type "Performer_group"
389       \name Dynamics
390       \consists "Piano_pedal_performer"
391     }
392     \context {
393       \PianoStaff
394       \accepts Dynamics
395     }
396   }
397 }
398 @end lilypond
399
400
401 @node String quartet
402 @appendixsec String quartet
403 @appendixsubsec String quartet
404
405 Dieses Beispiel demonstriert die Partitur für ein Streichquartett. Hier 
406 wird auch eine @qq{@code{\global}}-Variable für Taktart und 
407 Vorzeichen benutzt.
408
409 @lilypond[quote,verbatim,ragged-right]
410 \version "2.11.51"
411
412 global= {
413   \time 4/4
414   \key c \major
415 }
416
417 violinOne = \new Voice { \relative c''{
418   \set Staff.instrumentName = "Violin 1 "
419
420   c2 d e1
421
422 \bar "|." }}
423 violinTwo = \new Voice { \relative c''{
424   \set Staff.instrumentName = "Violin 2 "
425
426   g2 f e1
427
428 \bar "|." }}
429 viola = \new Voice { \relative c' {
430   \set Staff.instrumentName = "Viola "
431   \clef alto
432
433   e2 d c1
434
435 \bar "|." }}
436 cello = \new Voice { \relative c' {
437   \set Staff.instrumentName = "Cello     "
438   \clef bass
439
440   c2 b a1
441
442 \bar "|."}}
443
444 \score {
445    \new StaffGroup <<
446       \new Staff << \global \violinOne >>
447       \new Staff << \global \violinTwo >>
448       \new Staff << \global \viola >>
449       \new Staff << \global \cello >>
450    >>
451    \layout { }
452    \midi { }
453 }
454 @end lilypond
455
456 @appendixsubsec String quartet parts
457
458 Mit diesem Beispiel können Sie ein schönes Streichquartett notieren, 
459 aber wie gehen Sie vor, wenn Sie Stimmen brauchen? Das Beispiel 
460 oben hat gezeigt, wie Sie mit Variablen einzelne Abschnitte getrennt 
461 voneinander notieren können. Im nächsten Beispiel wird nun 
462 gezeigt, wie Sie mit diesen Variablen einzelne Stimmen erstellen.
463
464 Sie müssen das Beispiel in einzelne Dateien aufteilen; die Dateinamen
465 sind in den Kommentaren am Anfang jeder Datei enthalten.  @code{piece.ly}
466 enthält die Noten. Die anderen Dateien -- @code{score.ly},
467 @code{vn1.ly}, @code{vn2.ly}, @code{vla.ly} und
468 @code{vlc.ly} -- erstellen daraus die entsprechenden Stimmen bzw. die 
469 Partitur (@code{score.ly}). Mit @code{\tag} wird den Stimmen ein Name 
470 zugewiesen, auf den zurückgegriffen werden kann.
471
472 @verbatim
473 %%%%% piece.ly
474 \version "2.11.51"
475
476 global= {
477   \time 4/4
478   \key c \major
479 }
480
481 Violinone = \new Voice { \relative c''{
482   \set Staff.instrumentName = "Violin 1 "
483
484   c2 d e1
485
486 \bar "|." }}   %*********************************
487 Violintwo = \new Voice { \relative c''{
488   \set Staff.instrumentName = "Violin 2 "
489
490   g2 f e1
491
492 \bar "|." }}   %*********************************
493 Viola = \new Voice { \relative c' {
494   \set Staff.instrumentName = "Viola "
495   \clef alto
496
497   e2 d c1
498
499 \bar "|." }}   %*********************************
500 Cello = \new Voice { \relative c' {
501   \set Staff.instrumentName = "Cello     "
502   \clef bass
503
504   c2 b a1
505
506 \bar "|."}}   %**********************************
507
508 music = {
509   <<
510     \tag #'score \tag #'vn1 \new Staff { << \global \Violinone >> }
511     \tag #'score \tag #'vn2 \new Staff { << \global \Violintwo>> }
512     \tag #'score \tag #'vla \new Staff { << \global \Viola>> }
513     \tag #'score \tag #'vlc \new Staff { << \global \Cello>> }
514   >>
515 }
516
517
518
519 %%%%% score.ly
520 \version "2.11.51"
521 \include "piece.ly"
522 #(set-global-staff-size 14)
523 \score {
524   \new StaffGroup \keepWithTag #'score \music
525   \layout { }
526   \midi { }
527 }
528
529
530 %%%%% vn1.ly
531 \version "2.11.51"
532 \include "piece.ly"
533 \score {
534   \keepWithTag #'vn1 \music
535   \layout { }
536 }
537
538
539 %%%%% vn2.ly
540 \version "2.11.51"
541 \include "piece.ly"
542 \score {
543   \keepWithTag #'vn2 \music
544   \layout { }
545 }
546
547
548 %%%%% vla.ly
549 \version "2.11.51"
550 \include "piece.ly"
551 \score {
552   \keepWithTag #'vla \music
553   \layout { }
554 }
555
556
557 %%%%% vlc.ly
558 \version "2.11.51"
559 \include "piece.ly"
560 \score {
561   \keepWithTag #'vlc \music
562   \layout { }
563 }
564 @end verbatim
565
566
567 @node Vocal ensembles
568 @appendixsec Vocal ensembles
569
570 @appendixsubsec SATB vocal score
571
572 Dieses Beispiel ist für vierstimmigen Gesang (SATB). Bei größeren 
573 Stücken ist es oft sinnvoll, eine allgemeine Variable zu bestimmen, 
574 die in allen Stimmen eingefügt wird. Taktart und Vorzeichen etwa 
575 sind fast immer gleich in allen Stimmen.
576
577 @lilypond[quote,verbatim,ragged-right]
578 \version "2.11.51"
579 global = {
580    \key c \major
581    \time 4/4
582 }
583
584 sopMusic = \relative c'' {
585    c4 c c8[( b)] c4
586 }
587 sopWords = \lyricmode {
588    hi hi hi hi
589 }
590
591 altoMusic = \relative c' {
592    e4 f d e
593 }
594 altoWords =\lyricmode {
595    ha ha ha ha
596 }
597
598 tenorMusic = \relative c' {
599    g4 a f g
600 }
601 tenorWords = \lyricmode {
602    hu hu hu hu
603 }
604
605 bassMusic = \relative c {
606    c4 c g c
607 }
608 bassWords = \lyricmode {
609    ho ho ho ho
610 }
611
612 \score {
613    \new ChoirStaff <<
614       \new Lyrics = sopranos { s1 }
615       \new Staff = women <<
616          \new Voice =
617            "sopranos" { \voiceOne << \global \sopMusic >> }
618          \new Voice =
619            "altos" { \voiceTwo << \global \altoMusic >> }
620       >>
621       \new Lyrics = "altos" { s1 }
622       \new Lyrics = "tenors" { s1 }
623       \new Staff = men <<
624          \clef bass
625          \new Voice =
626            "tenors" { \voiceOne <<\global \tenorMusic >> }
627          \new Voice =
628            "basses" { \voiceTwo <<\global \bassMusic >> }
629       >>
630       \new Lyrics = basses { s1 }
631
632       \context Lyrics = sopranos \lyricsto sopranos \sopWords
633       \context Lyrics = altos \lyricsto altos \altoWords
634       \context Lyrics = tenors \lyricsto tenors \tenorWords
635       \context Lyrics = basses \lyricsto basses \bassWords
636    >>
637
638    \layout {
639       \context {
640          % a little smaller so lyrics
641          % can be closer to the staff
642          \Staff
643          \override VerticalAxisGroup #'minimum-Y-extent = #'(-3 . 3)
644       }
645    }
646 }
647 @end lilypond
648
649
650 @appendixsubsec SATB vocal score and automatic piano reduction
651
652 In diesem Beispiel wird ein automatischer Klavierauszug zu der 
653 Chorpartitur hinzugefügt. Das zeigt eine der Stärken von LilyPond
654 -- man kann eine Variable mehr als einmal benutzen. Wenn Sie 
655 irgendeine Änderung an einer Chorstimme vornehmen, (etwa 
656 tenorMusic), verändert sich auch der Klavierauszug entsprechend.
657
658 @lilypond[quote,verbatim,ragged-right]
659 \version "2.11.51"
660 global = {
661    \key c \major
662    \time 4/4
663 }
664
665 sopMusic = \relative c'' {
666    c4 c c8[( b)] c4
667 }
668 sopWords = \lyricmode {
669    hi hi hi hi
670 }
671
672 altoMusic = \relative c' {
673    e4 f d e
674 }
675 altoWords =\lyricmode {
676    ha ha ha ha
677 }
678
679 tenorMusic = \relative c' {
680    g4 a f g
681 }
682 tenorWords = \lyricmode {
683    hu hu hu hu
684 }
685
686 bassMusic = \relative c {
687    c4 c g c
688 }
689 bassWords = \lyricmode {
690    ho ho ho ho
691 }
692
693 \score {
694   <<
695     \new ChoirStaff <<
696       \new Lyrics = sopranos { s1 }
697       \new Staff = women <<
698         \new Voice =
699           "sopranos" { \voiceOne << \global \sopMusic >> }
700         \new Voice =
701           "altos" { \voiceTwo << \global \altoMusic >> }
702       >>
703       \new Lyrics = "altos" { s1 }
704       \new Lyrics = "tenors" { s1 }
705       \new Staff = men <<
706         \clef bass
707         \new Voice =
708           "tenors" { \voiceOne <<\global \tenorMusic >> }
709         \new Voice =
710           "basses" { \voiceTwo <<\global \bassMusic >> }
711       >>
712       \new Lyrics = basses { s1 }
713
714       \context Lyrics = sopranos \lyricsto sopranos \sopWords
715       \context Lyrics = altos \lyricsto altos \altoWords
716       \context Lyrics = tenors \lyricsto tenors \tenorWords
717       \context Lyrics = basses \lyricsto basses \bassWords
718     >>
719   \new PianoStaff <<
720     \new Staff <<
721       \set Staff.printPartCombineTexts = ##f
722       \partcombine
723       << \global \sopMusic >>
724       << \global \altoMusic >>
725     >>
726     \new Staff <<
727       \clef bass
728       \set Staff.printPartCombineTexts = ##f
729       \partcombine
730       << \global \tenorMusic >>
731       << \global \bassMusic >>
732     >>
733    >>
734   >>
735   \layout {
736     \context {
737       % a little smaller so lyrics
738       % can be closer to the staff
739       \Staff
740         \override VerticalAxisGroup #'minimum-Y-extent = #'(-3 . 3)
741     }
742   }
743 }
744 @end lilypond
745
746 @appendixsubsec SATB with aligned contexts
747
748 In diesem Beispiel werden die Texte mit den Befehlen 
749 @code{alignAboveContext} und @code{alignBelowContext}
750 über und unter dem System angeordnet.
751
752 @lilypond[quote,verbatim,ragged-right]
753 \version "2.11.51"
754 global = {
755   \key c \major
756   \time 4/4
757 }
758
759 sopMusic = \relative c'' {
760   c4 c c8[( b)] c4
761 }
762 sopWords = \lyricmode {
763   hi hi hi hi
764 }
765
766 altoMusic = \relative c' {
767   e4 f d e
768 }
769 altoWords =\lyricmode {
770   ha ha ha ha
771 }
772
773 tenorMusic = \relative c' {
774   g4 a f g
775 }
776 tenorWords = \lyricmode {
777   hu hu hu hu
778 }
779
780 bassMusic = \relative c {
781   c4 c g c
782 }
783 bassWords = \lyricmode {
784   ho ho ho ho
785 }
786
787 \score {
788   \new ChoirStaff <<
789      \new Staff = women <<
790         \new Voice =
791           "sopranos" { \voiceOne << \global \sopMusic >> }
792         \new Voice =
793           "altos" { \voiceTwo << \global \altoMusic >> }
794      >>
795      \new Lyrics \with {alignAboveContext=women} \lyricsto sopranos \sopWords
796      \new Lyrics \with {alignBelowContext=women} \lyricsto altos \altoWords
797 % we could remove the line about this with the line below, since we want
798 % the alto lyrics to be below the alto Voice anyway.
799 %    \new Lyrics \lyricsto altos \altoWords
800
801      \new Staff = men <<
802         \clef bass
803         \new Voice =
804           "tenors" { \voiceOne <<\global \tenorMusic >> }
805         \new Voice =
806           "basses" { \voiceTwo <<\global \bassMusic >> }
807      >>
808
809      \new Lyrics \with {alignAboveContext=men} \lyricsto tenors \tenorWords
810      \new Lyrics \with {alignBelowContext=men} \lyricsto basses \bassWords
811 % again, we could replace the line above this with the line below.
812 %    \new Lyrics \lyricsto basses \bassWords
813   >>
814
815   \layout {
816      \context {
817         % a little smaller so lyrics
818         % can be closer to the staff
819         \Staff
820         \override VerticalAxisGroup #'minimum-Y-extent = #'(-3 . 3)
821      }
822   }
823 }
824
825
826 \score {
827   \new ChoirStaff <<
828      \new Staff = women <<
829         \new Voice =
830           "sopranos" { \voiceOne << \global \sopMusic >> }
831         \new Voice =
832           "altos" { \voiceTwo << \global \altoMusic >> }
833      >>
834
835      \new Lyrics \with {alignAboveContext=women} \lyricsto sopranos \sopWords
836      \new Lyrics \lyricsto altos \altoWords
837
838      \new Staff = men <<
839         \clef bass
840         \new Voice =
841           "tenors" { \voiceOne <<\global \tenorMusic >> }
842         \new Voice =
843           "basses" { \voiceTwo <<\global \bassMusic >> }
844      >>
845
846      \new Lyrics \with {alignAboveContext=men} \lyricsto tenors \tenorWords
847      \new Lyrics \lyricsto basses \bassWords
848   >>
849
850   \layout {
851      \context {
852         % a little smaller so lyrics
853         % can be closer to the staff
854         \Staff
855         \override VerticalAxisGroup #'minimum-Y-extent = #'(-3 . 3)
856      }
857   }
858
859 @end lilypond
860
861
862 @c bad node name to avoid node name confict
863 @node Ancient notation templates
864 @appendixsec Ancient notation templates
865
866 @appendixsubsec Transcription of mensural music
867
868 Bei der Transkription von Mensuralmusik ist es oft erwünscht, ein 
869 Incipit an den Anfang des Stückes zu stellen, damit klar ist, wie 
870 Tempo und Schlüssel in der Originalnotation gesetzt waren. Während 
871 heutzutage Musiker an Taktlinien gewöhnt sind, um Rhythmen schneller 
872 zu erkennen, wurden diese in der Mensuralmusik nicht verwendet. 
873 Tatsächlich ändern sich die Rhythmen auch oft alle paar Noten. Als 
874 ein Kompromiss werden die Notenlinien nicht auf dem System, sondern 
875 zwischen den Systemen geschrieben.
876
877 @lilypond[quote,verbatim,line-width=11.0\cm]
878 \version "2.11.51"
879
880 global = {
881   \set Score.skipBars = ##t
882
883   % incipit
884   \once \override Score.SystemStartBracket #'transparent = ##t
885   \override Score.SpacingSpanner #'spacing-increment = #1.0 % tight spacing
886   \key f \major
887   \time 2/2
888   \once \override Staff.TimeSignature #'style = #'neomensural
889   \override Voice.NoteHead #'style = #'neomensural
890   \override Voice.Rest #'style = #'neomensural
891   \set Staff.printKeyCancellation = ##f
892   \cadenzaOn % turn off bar lines
893   \skip 1*10
894   \once \override Staff.BarLine #'transparent = ##f
895   \bar "||"
896   \skip 1*1 % need this extra \skip such that clef change comes
897             % after bar line
898   \bar ""
899
900   % main
901   \revert Score.SpacingSpanner #'spacing-increment % CHECK: no effect?
902   \cadenzaOff % turn bar lines on again
903   \once \override Staff.Clef #'full-size-change = ##t
904   \set Staff.forceClef = ##t
905   \key g \major
906   \time 4/4
907   \override Voice.NoteHead #'style = #'default
908   \override Voice.Rest #'style = #'default
909
910   % FIXME: setting printKeyCancellation back to #t must not
911   % occur in the first bar after the incipit.  Dto. for forceClef.
912   % Therefore, we need an extra \skip.
913   \skip 1*1
914   \set Staff.printKeyCancellation = ##t
915   \set Staff.forceClef = ##f
916
917   \skip 1*7 % the actual music
918
919   % let finis bar go through all staves
920   \override Staff.BarLine #'transparent = ##f
921
922   % finis bar
923   \bar "|."
924 }
925
926 discantusNotes = {
927   \transpose c' c'' {
928     \set Staff.instrumentName = "Discantus  "
929
930     % incipit
931     \clef "neomensural-c1"
932     c'1. s2   % two bars
933     \skip 1*8 % eight bars
934     \skip 1*1 % one bar
935
936     % main
937     \clef "treble"
938     d'2. d'4 |
939     b e' d'2 |
940     c'4 e'4.( d'8 c' b |
941     a4) b a2 |
942     b4.( c'8 d'4) c'4 |
943     \once \override NoteHead #'transparent = ##t c'1 |
944     b\breve |
945   }
946 }
947
948 discantusLyrics = \lyricmode {
949   % incipit
950   IV-
951
952   % main
953   Ju -- bi -- |
954   la -- te De -- |
955   o, om --
956   nis ter -- |
957   ra, __ om- |
958   "..." |
959   -us. |
960 }
961
962 altusNotes = {
963   \transpose c' c'' {
964     \set Staff.instrumentName = "Altus  "
965
966     % incipit
967     \clef "neomensural-c3"
968     r1        % one bar
969     f1. s2    % two bars
970     \skip 1*7 % seven bars
971     \skip 1*1 % one bar
972
973     % main
974     \clef "treble"
975     r2 g2. e4 fis g | % two bars
976     a2 g4 e |
977     fis g4.( fis16 e fis4) |
978     g1 |
979     \once \override NoteHead #'transparent = ##t g1 |
980     g\breve |
981   }
982 }
983
984 altusLyrics = \lyricmode {
985   % incipit
986   IV-
987
988   % main
989   Ju -- bi -- la -- te | % two bars
990   De -- o, om -- |
991   nis ter -- ra, |
992   "..." |
993   -us. |
994 }
995
996 tenorNotes = {
997   \transpose c' c' {
998     \set Staff.instrumentName = "Tenor  "
999
1000     % incipit
1001     \clef "neomensural-c4"
1002     r\longa   % four bars
1003     r\breve   % two bars
1004     r1        % one bar
1005     c'1. s2   % two bars
1006     \skip 1*1 % one bar
1007     \skip 1*1 % one bar
1008
1009     % main
1010     \clef "treble_8"
1011     R1 |
1012     R1 |
1013     R1 |
1014     r2 d'2. d'4 b e' | % two bars
1015     \once \override NoteHead #'transparent = ##t e'1 |
1016     d'\breve |
1017   }
1018 }
1019
1020 tenorLyrics = \lyricmode {
1021   % incipit
1022   IV-
1023
1024   % main
1025   Ju -- bi -- la -- te | % two bars
1026   "..." |
1027   -us. |
1028 }
1029
1030 bassusNotes = {
1031   \transpose c' c' {
1032     \set Staff.instrumentName = "Bassus  "
1033
1034     % incipit
1035     \clef "bass"
1036     r\maxima  % eight bars
1037     f1. s2    % two bars
1038     \skip 1*1 % one bar
1039
1040     % main
1041     \clef "bass"
1042     R1 |
1043     R1 |
1044     R1 |
1045     R1 |
1046     g2. e4 |
1047     \once \override NoteHead #'transparent = ##t e1 |
1048     g\breve |
1049   }
1050 }
1051
1052 bassusLyrics = \lyricmode {
1053   % incipit
1054   IV-
1055
1056   % main
1057   Ju -- bi- |
1058   "..." |
1059   -us. |
1060 }
1061
1062 \score {
1063   \new StaffGroup = choirStaff <<
1064     \new Voice =
1065       "discantusNotes" << \global \discantusNotes >>
1066     \new Lyrics =
1067       "discantusLyrics" \lyricsto discantusNotes { \discantusLyrics }
1068     \new Voice =
1069       "altusNotes" << \global \altusNotes >>
1070     \new Lyrics =
1071       "altusLyrics" \lyricsto altusNotes { \altusLyrics }
1072     \new Voice =
1073       "tenorNotes" << \global \tenorNotes >>
1074     \new Lyrics =
1075       "tenorLyrics" \lyricsto tenorNotes { \tenorLyrics }
1076     \new Voice =
1077       "bassusNotes" << \global \bassusNotes >>
1078     \new Lyrics =
1079       "bassusLyrics" \lyricsto bassusNotes { \bassusLyrics }
1080   >>
1081   \layout {
1082     \context {
1083       \Score
1084
1085       % no bars in staves
1086       \override BarLine #'transparent = ##t
1087
1088       % incipit should not start with a start delimiter
1089       \remove "System_start_delimiter_engraver"
1090     }
1091     \context {
1092       \Voice
1093
1094       % no slurs
1095       \override Slur #'transparent = ##t
1096
1097       % Comment in the below "\remove" command to allow line
1098       % breaking also at those barlines where a note overlaps
1099       % into the next bar.  The command is commented out in this
1100       % short example score, but especially for large scores, you
1101       % will typically yield better line breaking and thus improve
1102       % overall spacing if you comment in the following command.
1103       %\remove "Forbid_line_break_engraver"
1104     }
1105   }
1106 }
1107 @end lilypond
1108
1109
1110 @appendixsubsec Gregorian transcription template
1111
1112 Dieses Beispiel zeigt eine moderne Transkription des Gregorianischen 
1113 Chorals. Hier gibt es keine Takte, keine Notenhälse und es werden nur 
1114 halbe und Viertelnoten verwendet. Zusätzliche Zeichen zeigen die 
1115 Länge von Pausen an.
1116
1117 @lilypond[quote,verbatim,ragged-right]
1118 \include "gregorian-init.ly"
1119 \version "2.11.51"
1120
1121 chant = \relative c' {
1122   \set Score.timing = ##f
1123   f4 a2 \divisioMinima
1124   g4 b a2 f2 \divisioMaior
1125   g4( f) f( g) a2 \finalis
1126 }
1127
1128 verba = \lyricmode {
1129   Lo -- rem ip -- sum do -- lor sit a -- met
1130 }
1131
1132 \score {
1133   \new Staff <<
1134     \new Voice = "melody" {
1135       \chant
1136     }
1137     \new Lyrics = "one" \lyricsto melody \verba
1138   >>
1139
1140   \layout {
1141     \context {
1142       \Staff
1143       \remove "Time_signature_engraver"
1144       \remove "Bar_engraver"
1145       \override Stem #'transparent = ##t
1146     }
1147     \context {
1148       \Voice
1149       \override Stem #'length = #0
1150     }
1151     \context {
1152       \Score
1153       barAlways = ##t
1154     }
1155   }
1156 }
1157 @end lilypond
1158
1159
1160 @node Jazz combo
1161 @appendixsec Jazz combo
1162
1163 Hier ist ein ziemlich kompliziertes Beispiel für ein Jazz-Ensemble. Achtung: 
1164 Alle Instrumente sind in @code{\key c \major} (C-Dur) notiert. Das bezieht sich 
1165 auf die klingende Musik: LilyPond transponiert die Tonart automatisch, wenn 
1166 sich die Noten innerhalb eines @code{\transpose}-Abschnitts befinden.
1167
1168 @c TODO must clean up this jazz combo example
1169 @c   - transpositions stated in names (ie "trumpet in Bb" or whatever)
1170 @c   - one global section, instead of "global" (time) and "key"
1171 @c   - does it need those wierd macros?  sl, nsl, etc.
1172 @c   - maybe ask Amelie Zapf to clean it up, or whether I should just
1173 @c     make whatever changes I feel like.
1174
1175 @c FIXME: produces a warning ; key change merge.
1176 @c The `line-width' argument is for the \header.
1177
1178 @lilypond[quote,verbatim,ragged-right,line-width]
1179 \version "2.11.51"
1180 \header {
1181   title = "Song"
1182   subtitle = "(tune)"
1183   composer = "Me"
1184   meter = "moderato"
1185   piece = "Swing"
1186   tagline = \markup {
1187     \column {
1188       "LilyPond example file by Amelie Zapf,"
1189       "Berlin 07/07/2003"
1190     }
1191   }
1192   texidoc = "Jazz tune for combo
1193              (horns, guitar, piano, bass, drums)."
1194 }
1195
1196 #(set-global-staff-size 16)
1197 \include "english.ly"
1198
1199 %%%%%%%%%%%% Some macros %%%%%%%%%%%%%%%%%%%
1200
1201 sl = {
1202   \override NoteHead #'style = #'slash
1203   \override Stem #'transparent = ##t
1204 }
1205 nsl = {
1206   \revert NoteHead #'style
1207   \revert Stem #'transparent
1208 }
1209 cr = \override NoteHead #'style = #'cross
1210 ncr = \revert NoteHead #'style
1211
1212 %% insert chord name style stuff here.
1213
1214 jzchords = { }
1215
1216
1217 %%%%%%%%%%%% Keys'n'thangs %%%%%%%%%%%%%%%%%
1218
1219 global = {
1220   \time 4/4
1221 }
1222
1223 Key = { \key c \major }
1224
1225 % ############ Horns ############
1226
1227 % ------ Trumpet ------
1228 trpt = \transpose c d \relative c'' {
1229   \Key
1230   c1 c c
1231 }
1232 trpharmony = \transpose c' d {
1233   \jzchords
1234 }
1235 trumpet = {
1236   \global
1237   \set Staff.instrumentName = #"Trumpet"
1238   \clef treble
1239   <<
1240     \trpt
1241   >>
1242 }
1243
1244 % ------ Alto Saxophone ------
1245 alto = \transpose c a \relative c' {
1246   \Key
1247   c1 c c
1248 }
1249 altoharmony = \transpose c' a {
1250   \jzchords
1251 }
1252 altosax = {
1253   \global
1254   \set Staff.instrumentName = #"Alto Sax"
1255   \clef treble
1256   <<
1257     \alto
1258   >>
1259 }
1260
1261 % ------ Baritone Saxophone ------
1262 bari = \transpose c a' \relative c {
1263   \Key
1264   c1 c \sl d4^"Solo" d d d \nsl
1265 }
1266 bariharmony = \transpose c' a \chordmode {
1267   \jzchords s1 s d2:maj e:m7
1268 }
1269 barisax = {
1270   \global
1271   \set Staff.instrumentName = #"Bari Sax"
1272   \clef treble
1273   <<
1274     \bari
1275   >>
1276 }
1277
1278 % ------ Trombone ------
1279 tbone = \relative c {
1280   \Key
1281   c1 c c
1282 }
1283 tboneharmony = \chordmode {
1284   \jzchords
1285 }
1286 trombone = {
1287   \global
1288   \set Staff.instrumentName = #"Trombone"
1289   \clef bass
1290   <<
1291     \tbone
1292   >>
1293 }
1294
1295 % ############ Rhythm Section #############
1296
1297 % ------ Guitar ------
1298 gtr = \relative c'' {
1299   \Key
1300   c1 \sl b4 b b b \nsl c1
1301 }
1302 gtrharmony = \chordmode {
1303   \jzchords
1304   s1 c2:min7+ d2:maj9
1305 }
1306 guitar = {
1307   \global
1308   \set Staff.instrumentName = #"Guitar"
1309   \clef treble
1310   <<
1311     \gtr
1312   >>
1313 }
1314
1315 %% ------ Piano ------
1316 rhUpper = \relative c'' {
1317   \voiceOne
1318   \Key
1319   c1 c c
1320 }
1321 rhLower = \relative c' {
1322   \voiceTwo
1323   \Key
1324   e1 e e
1325 }
1326
1327 lhUpper = \relative c' {
1328   \voiceOne
1329   \Key
1330   g1 g g
1331 }
1332 lhLower = \relative c {
1333   \voiceTwo
1334   \Key
1335   c1 c c
1336 }
1337
1338 PianoRH = {
1339   \clef treble
1340   \global
1341   \set Staff.midiInstrument = "acoustic grand"
1342   <<
1343     \new Voice = "one" \rhUpper
1344     \new Voice = "two" \rhLower
1345   >>
1346 }
1347 PianoLH = {
1348   \clef bass
1349   \global
1350   \set Staff.midiInstrument = "acoustic grand"
1351   <<
1352     \new Voice = "one" \lhUpper
1353     \new Voice = "two" \lhLower
1354   >>
1355 }
1356
1357 piano = {
1358   <<
1359     \set PianoStaff.instrumentName = #"Piano"
1360     \new Staff = "upper" \PianoRH
1361     \new Staff = "lower" \PianoLH
1362   >>
1363 }
1364
1365 % ------ Bass Guitar ------
1366 Bass = \relative c {
1367   \Key
1368   c1 c c
1369 }
1370 bass = {
1371   \global
1372   \set Staff.instrumentName = #"Bass"
1373   \clef bass
1374   <<
1375     \Bass
1376   >>
1377 }
1378
1379 % ------ Drums ------
1380 up = \drummode {
1381   hh4 <hh sn>4 hh <hh sn> hh <hh sn>4
1382   hh4 <hh sn>4
1383   hh4 <hh sn>4
1384   hh4 <hh sn>4
1385 }
1386
1387 down = \drummode {
1388   bd4 s bd s bd s bd s bd s bd s
1389 }
1390
1391 drumContents = {
1392   \global
1393   <<
1394     \set DrumStaff.instrumentName = #"Drums"
1395     \new DrumVoice { \voiceOne \up }
1396     \new DrumVoice { \voiceTwo \down }
1397   >>
1398 }
1399
1400 %%%%%%%%% It All Goes Together Here %%%%%%%%%%%%%%%%%%%%%%
1401
1402 \score {
1403   <<
1404     \new StaffGroup = "horns" <<
1405       \new Staff = "trumpet" \trumpet
1406       \new Staff = "altosax" \altosax
1407       \new ChordNames = "barichords" \bariharmony
1408       \new Staff = "barisax" \barisax
1409       \new Staff = "trombone" \trombone
1410     >>
1411
1412     \new StaffGroup = "rhythm" <<
1413       \new ChordNames = "chords" \gtrharmony
1414       \new Staff = "guitar" \guitar
1415       \new PianoStaff = "piano" \piano
1416       \new Staff = "bass" \bass
1417       \new DrumStaff { \drumContents }
1418     >>
1419   >>
1420
1421   \layout {
1422     \context { \RemoveEmptyStaffContext }
1423     \context {
1424       \Score
1425       \override BarNumber #'padding = #3
1426       \override RehearsalMark #'padding = #2
1427       skipBars = ##t
1428     }
1429   }
1430
1431   \midi { }
1432 }
1433 @end lilypond
1434
1435 @ignore
1436
1437 This isn't very useful, and only duplicates material in
1438 "global issues".  And if this info changes, this section often
1439 gets forgotten.
1440
1441 @no de Other templates
1442 @se ction Other templates
1443 @su bsection All headers
1444
1445 This template displays all available headers.  Some of them are only
1446 used in the Mutopia project; they don't affect the printed output at
1447 all.  They are used if you want the piece to be listed with different
1448 information in the Mutopia database than you wish to have printed on the
1449 music.  For example, Mutopia lists the composer of the famous D major
1450 violin concerto as TchaikovskyPI, whereas perhaps you wish to print
1451 "Petr Tchaikowski" on your music.
1452
1453 @ The `line-width' is for \header.
1454 @li lypond[quote,verbatim,ragged-right,line-width]
1455 \version "2.11.51"
1456 \header {
1457   dedication = "dedication"
1458   title = "Title"
1459   subtitle = "Subtitle"
1460   subsubtitle = "Subsubtitle"
1461   composer = "Composer (xxxx-yyyy)"
1462   opus = "Opus 0"
1463   piece = "Piece I"
1464   meter = "meter"
1465   instrument = "Instrument"
1466   arranger = "Arranger"
1467   poet = "Poet"
1468   texttranslator = "Translator"
1469   copyright = "public domain"
1470
1471   % These are headers used by the Mutopia Project
1472   % http://www.mutopiaproject.org/
1473   mutopiatitle = ""
1474   mutopiacomposer = ""
1475   mutopiapoet = ""
1476   mutopiainstrument = ""
1477   date = "composer's dates"
1478   source = "urtext "
1479   maintainer = "your name here"
1480   maintainerEmail = "your email here"
1481   maintainerWeb = "your home page"
1482   lastupdated = "2004/Aug/26"
1483 }
1484
1485 \score {
1486   { c'4 }
1487   \header {
1488     piece = "piece1"
1489     opus = "opus1"
1490   }
1491 }
1492
1493 \score {
1494   { c'4 }
1495   \header {
1496     piece = "piece2"
1497     opus = "opus2"
1498   }
1499 }
1500 @end lilypond
1501 @end ignore
1502
1503
1504 @node Lilypond-book templates
1505 @appendixsec Lilypond-book templates
1506
1507 Diese Vorlagen können mit @code{lilypond-book} benutzt werden. Wenn 
1508 Sie dieses Programm noch nicht kennen, lesen Sie bitte den Abschnitt 
1509 @rprogram{LilyPond-book}.
1510
1511 @appendixsubsec LaTeX
1512
1513 LilyPond-Noten können in LaTeX-Dokumente eingefügt werden.
1514
1515 @example
1516 \documentclass[]@{article@}
1517
1518 \begin@{document@}
1519
1520 Normaler LaTeX-Ttext.
1521
1522 \begin@{lilypond@}
1523 \relative c'' @{
1524 a4 b c d
1525 @}
1526 \end@{lilypond@}
1527
1528 Weiterer LaTeX-Text.
1529
1530 \begin@{lilypond@}
1531 \relative c'' @{
1532 d4 c b a
1533 @}
1534 \end@{lilypond@}
1535 \end@{document@}
1536 @end example
1537
1538 @appendixsubsec Texinfo
1539
1540 LilyPond-Noten können auch in Texinfo eingefügt werden -- dieses 
1541 gesamte Handbuch ist in Texinfo geschrieben.
1542
1543 @example
1544 \input texinfo
1545 @@node Top
1546
1547 Texinfo-Text
1548
1549 @@lilypond[verbatim,fragment,ragged-right]
1550 a4 b c d
1551 @@end lilypond
1552
1553 Weiterer Texinfo-Text
1554
1555 @@lilypond[verbatim,fragment,ragged-right]
1556 d4 c b a
1557 @@end lilypond
1558
1559 @@bye
1560 @end example