lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: basic question regarding \drummode


From: Thomas Morley
Subject: Re: basic question regarding \drummode
Date: Sat, 5 Nov 2016 14:08:20 +0100

2016-11-05 13:46 GMT+01:00 Thomas Morley <address@hidden>:
> 2016-11-05 12:39 GMT+01:00 Malte Meyn <address@hidden>:
>>
>>
>> Am 04.11.2016 um 23:15 schrieb Tobin Chodos:
>>>
>>> What's the best way to handle a percussion part that has a lot of
>>> pitched and un-pitched material?
>>
>>
>> You could have a “pitched” Staff accept not only “pitched” Voices but also
>> DrumVoices:
>>
>> \version "2.18.2"
>>
>> \new Staff \with {
>>   \accepts DrumVoice
>> } \relative {
>>   c' d e f
>>   \new DrumVoice \drummode {
>>     bd hh sn hh
>>   }
>>   g a b c
>>
>> }
>
>
> Hi Malte,
>
> this will fail if the DrumVoice is created before Voice, uncomment
> Voice to make it work.
>
> \new Staff \with { \accepts DrumVoice }
>   \relative {
>     %\context Voice { <> }
>     \context DrumVoice \drummode { hh4 hh hh hh }
>     g a b c
> }
>
> Cheers,
>   Harm

Better and with clefs:

\new Staff \with { \accepts DrumVoice }
  \context Voice
  \relative {
    \context DrumVoice \drummode {
      \set Staff.clefPosition = #0
      \set Staff.clefGlyph = #"clefs.percussion"
      hh4 hh hh hh
    }
    \clef treble
    g a b c
    \context DrumVoice \drummode {
      \set Staff.clefPosition = #0
      \set Staff.clefGlyph = #"clefs.percussion"
      hh4 hh hh hh
    }
    \clef treble
    g a b c
}

Cheers,
  Harm



reply via email to

[Prev in Thread] Current Thread [Next in Thread]