On 12/06/2026 17:24, Kevin Cole wrote:
%%%%%%%%%%%%%%
\version "2.26.0"
\language "english"

{
   e'2 f'2                 |
   r2 r4
   \override NoteHead.style = #'cross
   b'4^\markup \italic "Hey!"
   \revert NoteHead.style  |
   c''2 d''2               |
}
%%%%%%%%%%%%%%

However, I'd like to have a MIDI clap at "Hey!" -- but only if adding
such would be as short and simple as the code above.

I have barely any experience with MIDI, especially not with picking good sounds. But here’s a simple way of adding a temporary DrumVoice; the approach may be unfamiliar but helpful.

I looked at Notation Reference section 13 and B.15 for percussion reference, but obviously I just picked out the default handclap percussion note which likely won’t do what you want. But maybe it combines well with Guy’s suggestions regarding MIDI output.

HTH,
Simon

%%%%%%%%%%%%%%%%%%%%
\version "2.26.0"
\language "english"

\new Staff \with {
  \accepts DrumVoice
} \new Voice {
  e'2 f'2                 |
  r2 r4
  <<
    s4
    \new DrumVoice \drummode {
      handclap4^\markup \italic "Hey!"
    }
  >>                      |
  c''2 d''2               |
}
%%%%%%%%%%%%%%%%%%%%%

Reply via email to