Greetings

I have this drum part that needs an ossia for a Tubular bell.

But I cannot write music in it some how.
The problem can be seen and explained on line 25 and 26.

Currently I have a sn (snare) that should be a b flat.

Here is my MWE on [lilybin]

[lilybin] = http://lilybin.com/hwg9nm/1

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\version "2.18"

\language "english"

setTubularBells = {
  \set Staff.midiInstrument = #"tubular bells"
  <>^\markup \fontsize #-2 \bold {Tubular bells}
}

drumMusic = \drummode {
  <<
    \repeat unfold 4 <<
      \repeat unfold 2 { hh8 hh <hh sn> hh }
      \\
      \repeat unfold 2 { bd4 r }
    >>
    {
      s1 |
      s2
      \new Staff = "ossia" \with {
        alignAboveContext = "drum"
        \remove "Time_signature_engraver"
        \override StaffSymbol #'staff-space = #(magstep -3)
      }
      % This bellow should be, say, a bf; i.e. not a snare.
      {\setTubularBells sn2\laissezVibrer }
    }

  >>
}

drumPart = \new DrumStaff = "drum" <<
  \new DrumVoice {
    \drumMusic
  }
>>

\score {
  <<
    \drumPart
  >>
  \layout {}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Thanks for your help
-- 
Pierre-Luc Gauthier
\version "2.18"

\language "english"

setTubularBells = {
  \set Staff.midiInstrument = #"tubular bells"
  <>^\markup \fontsize #-2 \bold {Tubular bells}
}

drumMusic = \drummode {
  <<
    \repeat unfold 4 <<
      \repeat unfold 2 { hh8 hh <hh sn> hh }
      \\
      \repeat unfold 2 { bd4 r }
    >>
    {
      s1 |
      s2
      \new Staff = "ossia" \with {
        alignAboveContext = "drum"
        \remove "Time_signature_engraver"
        \override StaffSymbol #'staff-space = #(magstep -3)
      }
      % This bellow should be, say, a bf; i.e. not a snare.
      {\setTubularBells sn2\laissezVibrer }
    }

  >>
}

drumPart = \new DrumStaff = "drum" <<
  \new DrumVoice {
    \drumMusic
  }
>>

\score {
  <<
    \drumPart
  >>
  \layout {}
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to