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