Kurs:Lilypond für Wikis: Schlagzeug
Schlagzeugbegleitung
[Bearbeiten]Dieses Beispiel ist für eine Legende am Ende eines Liedes gedacht, bei der nur die Akkorde und das Schlagmuster für Gitarre gezeigt wird. Die Schlagzeugbegleitung soll nur im Hintergrund erklingen. Sie wird hier nur zur Kontrolle angezeigt.
![\version "2.20.0"
\header {
title="Pop-Formel in D"
subtitle="Rhythmus BB-B5"
encoder="mjchael"
}
myKey = {
\tempo 4 = 100
\time 4/4
\key d \major
}
%% Gitarre Midi
myD = { < d a d' fis'>4 8 8 4 8 8 }
myA = { < a, e a cis' e'>4 8 4 8 4 }
myBm = { < b, fis b d' fis'>4 8 8 4 8 8 }
myG = { < g, d g b d' g'>4 8 4 8 4 }
myGuitar = {
\repeat volta 4 {
\myD \myA \myBm \myG }
}
%% Drum Background
up = \drummode {
\stemUp
hh8 8 8 8 | halfopenhihat openhihat hh8 8
hh8 8 8 8 | halfopenhihat openhihat hh8 8
}
down = \drummode {
\stemUp
<tomfl snare>4 sn tomfl sn %tomfl statt bd
<tomfl snare>4 sn tomfl sn
}
myDrum = {
<<
\new DrumVoice { \voiceOne \repeat volta 8 {\up}}
\new DrumVoice { \voiceTwo \repeat volta 8 {\down}}
>>
}
\score {
<<
%% Fretboard with chord names
\new ChordNames { \chordmode {
d1 a b:m g
}}
\new FretBoards {
\override FretBoards.FretBoard.size = #'1.5
\override FretBoard.fret-diagram-details.finger-code = #'in-dot
\override FretBoard.fret-diagram-details.dot-color = #'white
\override FretBoard.fret-diagram-details.orientation =
#'landscape
< d a-1 d'-3 fis'-2> % D
< a, e-1 a-2 cis'-3 e' > % A
< b,-1 fis-3 b-4 d'-2 fis'-1>1 % Bm
< g,-1 d-3 g-4 b-2 d'-1 g'-1> % G
}
>>
}
%% Strumming Pattern
\score {
\new Voice \with {
\consists "Pitch_squash_engraver"
}{
\set Staff.midiInstrument = "acoustic guitar (nylon)"
\improvisationOn
\override NoteHead.X-offset = 0
\repeat volta2 {
d4 \downbow % 1
d8 \downbow % 2
d8 \upbow % +
d4 \downbow % 3
d8 \downbow % 4
d8 \upbow % +
d4 \downbow % 1
d8 \downbow % 2
d4 \upbow % + (3)
d8 \upbow % +
d4 \downbow % 4
}
}\addlyrics {"1" "2" "+" "3" "4" "+" "1" "2" "+" "+" "4" }
\layout{}
}
%% Drum Background remove the space between % { to hide them
% { Check
\score { \new DrumStaff \with {
drumStyleTable = #agostini-drums-style
}{ \myDrum }}
%}
\score { << % midi
\myKey
\set Staff.midiInstrument = #"acoustic guitar (nylon)"
{ \unfoldRepeats \repeat volta 16 { \myGuitar }
< d a-1 d'-3 fis'-2>1 % D (End)
}
\unfoldRepeats \repeat volta 32 { \myDrum }
>> \midi{} }
\paper {
indent=0\mm
line-width=80\mm
oddFooterMarkup=##f
oddHeaderMarkup=##f
% bookTitleMarkup=##f
scoreTitleMarkup=##f
}](http://upload.wikimedia.org/score/f/n/fngvhjr53i4pt7g7kzxblt3xz7v61zt/fngvhjr5.png)
<score sound="1" raw="1">
\version "2.20.0"
\header {
title="Pop-Formel in D"
subtitle="Rhythmus BB-B5"
encoder="mjchael"
}
myKey = {
\tempo 4 = 100
\time 4/4
\key d \major
}
%% Gitarre Midi
myD = { < d a d' fis'>4 8 8 4 8 8 }
myA = { < a, e a cis' e'>4 8 4 8 4 }
myBm = { < b, fis b d' fis'>4 8 8 4 8 8 }
myG = { < g, d g b d' g'>4 8 4 8 4 }
myGuitar = {
\repeat volta 4 {
\myD \myA \myBm \myG }
}
%% Drum Background
up = \drummode {
\stemUp
hh8 8 8 8 | halfopenhihat openhihat hh8 8
hh8 8 8 8 | halfopenhihat openhihat hh8 8
}
down = \drummode {
\stemUp
<tomfl snare>4 sn tomfl sn %tomfl statt bd
<tomfl snare>4 sb tomfl sn
}
myDrum = {
<<
\new DrumVoice { \voiceOne \repeat volta 8 {\up}}
\new DrumVoice { \voiceTwo \repeat volta 8 {\down}}
>>
}
\score {
<<
%% Fretboard with chord names
\new ChordNames { \chordmode {
d1 a b:m g
}}
\new FretBoards {
\override FretBoards.FretBoard.size = #'1.5
\override FretBoard.fret-diagram-details.finger-code = #'in-dot
\override FretBoard.fret-diagram-details.dot-color = #'white
\override FretBoard.fret-diagram-details.orientation =
#'landscape
< d a-1 d'-3 fis'-2> % D
< a, e-1 a-2 cis'-3 e' > % A
< b,-1 fis-3 b-4 d'-2 fis'-1>1 % Bm
< g,-1 d-3 g-4 b-2 d'-1 g'-1> % G
}
>>
}
%% Strumming Pattern
\score {
\new Voice \with {
\consists "Pitch_squash_engraver"
}{
\set Staff.midiInstrument = "acoustic guitar (nylon)"
\improvisationOn
\override NoteHead.X-offset = 0
\repeat volta2 {
d4 \downbow % 1
d8 \downbow % 2
d8 \upbow % +
d4 \downbow % 3
d8 \downbow % 4
d8 \upbow % +
d4 \downbow % 1
d8 \downbow % 2
d4 \upbow % + (3)
d8 \upbow % +
d4 \downbow % 4
}
}\addlyrics {"1" "2" "+" "3" "4" "+" "1" "2" "+" "+" "4" }
\layout{}
}
%% Drum Background remove the space between % { to hide them
% { Check
\score { \new DrumStaff \with {
drumStyleTable = #agostini-drums-style
}{ \myDrum }}
%}
\score { << % midi
\myKey
\set Staff.midiInstrument = #"acoustic guitar (nylon)"
{ \unfoldRepeats \repeat volta 16 { \myGuitar }
< d a-1 d'-3 fis'-2>1 % D (End)
}
\unfoldRepeats \repeat volta 32 { \myDrum }
>> \midi{} }
\paper {
indent=0\mm
line-width=80\mm
oddFooterMarkup=##f
oddHeaderMarkup=##f
% bookTitleMarkup=##f
scoreTitleMarkup=##f
}
</score>
Erklärung
[Bearbeiten]Die Gitarrenbegleitung, Griffbilder und Schlagmuster wurden schon in den vorangehende Kapiteln beschrieben.
- \stemUp
Stefano Antonelli von der lilypond-user@gnu.org Mailingliste empfiehlt, die Notenhälse nach oben zeigen zu lassen. (Danke für den Tipp.)
- up = \drummode {...}
Stellt die obere Notation des Schlagzeugers dar.
- hh8 8 8 8 | halfopenhihat openhihat
- hh ist die Abkürzung für
Hi-Hat
- <bd snare>4 sn bd sn
- bd ist die Abkürzung für
Bass Drum
- sn ist die Abkürzung für
Snare Drum
Für Rhythmus und Percussion gibt es ausgeschriebene Instrumentierung und wesentlich praktischere Abkürzungen. Hier wird jedoch nur eine streiflichtartige Zusammenfassung der allerwichtigsten Elemente gezeigt.
- Es gibt nur ein Problem
- Die Bass Drum (bd) wird zwar angezeigt aber nicht im Midi ausgegeben.
- Lösung
- verwende die Boden Trommel (tomfl) statt der Base Drum (bd) bis dermaleinst dieser Bug behoben wird.
Rhythmus 1
[Bearbeiten]up = \drummode { \stemUp
hh4 hh hh hh
}
down = \drummode { \stemUp
tomfl4 sn8 tomfl8 4 sn %tomfl statt bd
}
![\version "2.20.0"
%% Drum Background
up = \drummode { \stemUp
hh4 hh hh hh
}
down = \drummode { \stemUp
tomfl4 sn8 tomfl8 4 sn %tomfl statt bd
}
myDrum = {
<<
\new DrumVoice { \voiceOne \repeat volta 8 {\up}}
\new DrumVoice { \voiceTwo \repeat volta 8 {\down}}
>>
}
%% Drum Background remove the space between % { to hide them
% { Check
\score { \new DrumStaff \with {
drumStyleTable = #agostini-drums-style
}{ \myDrum } \layout{}}
%}
\score { << % midi
\tempo 4 = 140
\unfoldRepeats \repeat volta 32 { \myDrum }
>> \midi{} }
\paper {
indent=0\mm
line-width=80\mm
oddFooterMarkup=##f
oddHeaderMarkup=##f
% bookTitleMarkup=##f
scoreTitleMarkup=##f
}](http://upload.wikimedia.org/score/k/6/k6gz89pjjn3pgcbk2xng3twgi60n1hk/k6gz89pj.png)
Rhythmus 2
[Bearbeiten]up = \drummode { \stemUp
hh8 hh hh hh hh hh hh hh
}
down = \drummode { \stemUp
tomfl4 sn8 tomfl8 4 sn %tomfl statt bd
}
![\version "2.20.0"
%% Drum Background
up = \drummode { \stemUp
hh8 hh hh hh hh hh hh hh
}
down = \drummode { \stemUp
tomfl4 sn8 tomfl8 4 sn %tomfl statt bd
}
myDrum = {
<<
\new DrumVoice { \voiceOne \repeat volta 8 {\up}}
\new DrumVoice { \voiceTwo \repeat volta 8 {\down}}
>>
}
%% Drum Background remove the space between % { to hide them
% { Check
\score { \new DrumStaff \with {
drumStyleTable = #agostini-drums-style
}{ \myDrum } \layout{}}
%}
\score { << % midi
\tempo 4 = 140
\unfoldRepeats \repeat volta 32 { \myDrum }
>> \midi{} }
\paper {
indent=0\mm
line-width=80\mm
oddFooterMarkup=##f
oddHeaderMarkup=##f
% bookTitleMarkup=##f
scoreTitleMarkup=##f
}](http://upload.wikimedia.org/score/p/7/p7hr6ltuimmv5nb5xjqs56p11bzcgjz/p7hr6ltu.png)
Rhythmus 3
[Bearbeiten]up = \drummode { \stemUp
hh16 hh hh hh r16 hh hh hh hh16 hh hh hh r16 hh hh hh
}
down = \drummode { \stemUp
tomfl4 sn8 tomfl8 4 sn %tomfl statt bd
}
![\version "2.20.0"
%% Drum Background
up = \drummode { \stemUp
hh16 hh hh hh r16 hh hh hh hh16 hh hh hh r16 hh hh hh
}
down = \drummode { \stemUp
tomfl4 sn8 tomfl8 4 sn %tomfl statt bd
}
myDrum = {
<<
\new DrumVoice { \voiceOne \repeat volta 8 {\up}}
\new DrumVoice { \voiceTwo \repeat volta 8 {\down}}
>>
}
%% Drum Background remove the space between % { to hide them
% { Check
\score { \new DrumStaff \with {
drumStyleTable = #agostini-drums-style
}{ \myDrum } \layout{}}
%}
\score { << % midi
\tempo 4 = 140
\unfoldRepeats \repeat volta 32 { \myDrum }
>> \midi{} }
\paper {
indent=0\mm
line-width=80\mm
oddFooterMarkup=##f
oddHeaderMarkup=##f
% bookTitleMarkup=##f
scoreTitleMarkup=##f
}](http://upload.wikimedia.org/score/j/3/j3bywlm763nglptic6quhmcimiy1qri/j3bywlm7.png)
Rhythmus 4
[Bearbeiten]up = \drummode { \stemUp
hh8 hh16 hh hh8 hh16 hh hh8 hh16 hh hh8 hh16 hh
}
down = \drummode { \stemUp
tomfl4 sn8 tomfl8 4 sn %tomfl statt bd
}
![\version "2.20.0"
%% Drum Background
up = \drummode { \stemUp
hh8 hh16 hh hh8 hh16 hh hh8 hh16 hh hh8 hh16 hh
}
down = \drummode { \stemUp
tomfl4 sn8 tomfl8 4 sn %tomfl statt bd
}
myDrum = {
<<
\new DrumVoice { \voiceOne \repeat volta 8 {\up}}
\new DrumVoice { \voiceTwo \repeat volta 8 {\down}}
>>
}
%% Drum Background remove the space between % { to hide them
% { Check
\score { \new DrumStaff \with {
drumStyleTable = #agostini-drums-style
}{ \myDrum } \layout{}}
%}
\score { << % midi
\tempo 4 = 140
\unfoldRepeats \repeat volta 32 { \myDrum }
>> \midi{} }
\paper {
indent=0\mm
line-width=80\mm
oddFooterMarkup=##f
oddHeaderMarkup=##f
% bookTitleMarkup=##f
scoreTitleMarkup=##f
}](http://upload.wikimedia.org/score/7/j/7jgnwqljh3s23kp5e4k14ik0oeyju0c/7jgnwqlj.png)
Rhythmus 5
[Bearbeiten]up = \drummode { \stemUp
hh16 hh hh8 hh16 hh hh8 hh16 hh hh8 hh16 hh hh8
}
down = \drummode { \stemUp
tomfl4 sn8 tomfl8 4 sn %tomfl statt bd
}
![\version "2.20.0"
%% Drum Background
up = \drummode { \stemUp
hh16 hh hh8 hh16 hh hh8 hh16 hh hh8 hh16 hh hh8
}
down = \drummode { \stemUp
tomfl4 sn8 tomfl8 4 sn %tomfl statt bd
}
myDrum = {
<<
\new DrumVoice { \voiceOne \repeat volta 8 {\up}}
\new DrumVoice { \voiceTwo \repeat volta 8 {\down}}
>>
}
%% Drum Background remove the space between % { to hide them
% { Check
\score { \new DrumStaff \with {
drumStyleTable = #agostini-drums-style
}{ \myDrum } \layout{}}
%}
\score { << % midi
\tempo 4 = 140
\unfoldRepeats \repeat volta 32 { \myDrum }
>> \midi{} }
\paper {
indent=0\mm
line-width=80\mm
oddFooterMarkup=##f
oddHeaderMarkup=##f
% bookTitleMarkup=##f
scoreTitleMarkup=##f
}](http://upload.wikimedia.org/score/a/x/axbgepryzgks62ssgdd0tx3q2n6jufj/axbgepry.png)
Rhythmus 6
[Bearbeiten]up = \drummode { \stemUp
r8 hh r hh r hh r hh
}
down = \drummode { \stemUp
tomfl4 sn8 tomfl8 4 sn %tomfl statt bd
}
![\version "2.20.0"
%% Drum Background
up = \drummode { \stemUp
r8 hh r hh r hh r hh
}
down = \drummode { \stemUp
tomfl4 sn8 tomfl8 4 sn %tomfl statt bd
}
myDrum = {
<<
\new DrumVoice { \voiceOne \repeat volta 8 {\up}}
\new DrumVoice { \voiceTwo \repeat volta 8 {\down}}
>>
}
%% Drum Background remove the space between % { to hide them
% { Check
\score { \new DrumStaff \with {
drumStyleTable = #agostini-drums-style
}{ \myDrum } \layout{}}
%}
\score { << % midi
\tempo 4 = 140
\unfoldRepeats \repeat volta 32 { \myDrum }
>> \midi{} }
\paper {
indent=0\mm
line-width=80\mm
oddFooterMarkup=##f
oddHeaderMarkup=##f
% bookTitleMarkup=##f
scoreTitleMarkup=##f
}](http://upload.wikimedia.org/score/q/a/qacir23ae7mdsbfotaibl23dla5znj1/qacir23a.png)
Diese Rhythmus-Beispiele wurden mit Hilfe von Sébastien Richard von der lilypond-user@gnu.org Mailingliste erstellt, der mir auch bei der Fehlversuche half. Ihm an dieser Stelle ein herzliches Dankeschön gesagt wird.