Drumstaff/drummode und Staff/Pauke in einem System

Begonnen von viertel, Samstag, 2. November 2019, 23:12

« vorheriges - nächstes »

viertel

Hallo zu später Stunde

Wie erzeuge ich einen Wechsel zwischen Schlagzeug (bassdrum etc.) und Pauken in einem System?
Drumstaff{} und Staff{} nacheinander erzeugen zwei Systeme.

harm6


\version "2.19.83"

\new DrumStaff \with { \accepts "Voice" }
<<
  %% To avoid the need to create too many new contexts of type Voice, we
  %% initiate a new named Voice right at start and let further occurrencies
  %% of Voices distribute their content to it.
  %% We need to enter a spacer there with the length of the whole music.
  %% I.e. This example has 5 4/4-measures, thus we enter s1*5.
  \new Voice = "pauke" \notemode { s1*5 }
  \drummode {
    bd1
    \context Voice = "pauke" \notemode {
      \clef bass
      b,2 f
    }
    \clef percussion
    bd1
    \context Voice = "pauke" \notemode {
      \clef bass
      b,2 f
    }
    \clef percussion
    bd1
  }
>>


HTH,
  Harm

viertel

Perfekt! Vielen Dank.
Aber wie soll man da drauf kommen?

viertel

Hmm, leider doch nicht ganz so perfekt.
Eine kleine Änderung in der Pauke, bes statt b, aber das Vorzeichen wird nicht gedruckt :-[

harm6

Versuch mal den Accidental_engraver in die Voice zu packen. Führt zu:


\version "2.19.83"

\new DrumStaff \with { \accepts "Voice" }
<<
  %% To avoid the need to create too many new contexts of type Voice, we
  %% initiate a new named Voice right at start and let further occurrencies
  %% of Voices distribute their content to it.
  %% We need to enter a spacer there with the length of the whole music.
  %% I.e. This example has 5 4/4-measures, thus we enter s1*5.
  \new Voice = "pauke"
    \with { \consists "Accidental_engraver" }
    \notemode { s1*5 }
   
  \drummode {
    bd1
    \context Voice = "pauke" \notemode {
      \clef bass
      bes,2 f
    }
    \clef percussion
    bd1
    \context Voice = "pauke" \notemode {
      \clef bass
      bes,2 f
    }
    \clef percussion
    bd1
  }
>>


Im minimal funktionierts ...


Gruß,
  Harm

viertel