Mixing harmonics and regular notes

Revision as of 22:42, 26 October 2025 by Jean Abou Samra (talk | contribs) (Import snippet from LSR)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In passages where there are harmonics in one voice and regular notes in the other, the note head 'style override only applies to the voice in which it is declared.

\version "2.24.0"

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

upper = \relative c' {
  \voiceOne
  \clef "treble_8"
  \override NoteHead.style = #'harmonic
  g8 a b c b4 d
  <g b>1
}

lower = \relative c {
  \voiceTwo
  \clef "treble_8"
  e2 d
  g,1
}

\score {
  \new Staff = "guitar" <<
    \context Voice = "upper" { \upper }
    \context Voice = "lower" { \lower }
  >>
  \layout { }
}