Jump to content

Notating whispering and air tones

From LilyPond wiki
(Redirected from LSR 847)

Alfred Blatter suggested using circular note heads for brass and woodwind instruments to indicate air tones or whispering lyrics into the instrument. Here's a way to do this in LilyPond.

\version "2.24.0"

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

whisperOn = {
  \override NoteHead.stem-attachment = #'(0 . -1.5)
  \override NoteHead.stencil =
    #(lambda (grob)
       (make-circle-stencil 0.6 0.2
         (> (ly:grob-property grob 'duration-log) 1)))
  \override Staff.AccidentalPlacement.right-padding = #0.6
}

whisperOff = {
  \revert NoteHead.stem-attachment
  \revert NoteHead.stencil
  \revert Staff.AccidentalPlacement.right-padding
}

\new Staff \relative c' {
  \whisperOn
  | c1
  | es2 g4 f8 d8
  \whisperOff
  | c2 c2
  % to print default-BarLines in the section with 'line-count = #1 add:
  % \override Staff.BarLine.bar-extent = #'(-2 . 2)
  \stopStaff
  \override Staff.StaffSymbol.line-count = #1
  \startStaff
  {
    \whisperOn
    | \tuplet 5/4 { b'16 b16 b16 b16 b16 } b16 b16 b8 b8 b4.
  }
  \addlyrics {
    | Hip -- po -- pot -- a -- mus ce -- ler -- y pa -- per
  }
}