Jump to content

Harmonics with parenthesized stemless note head

From LilyPond wiki
Revision as of 18:57, 16 November 2025 by Jean Abou Samra (talk | contribs) (Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series)

This snippet places a small parenthesized stemless note head above harmonics to indicate the sounding pitch.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=544

\relative c'' {
  \override Staff.NoteColumn.ignore-collision = ##t
  \override NoteHead.style = #'harmonic-mixed
  <<
    {
      \oneVoice
      <a e'\harmonic>4
    }
    \\
    {
      \oneVoice
      \tiny
      \override Stem.stencil = ##f
      \override Flag.stencil = ##f
      \override Parentheses.font-size = #0
      <\parenthesize e''>4
    }
  >>
}