Jump to content

Writing intermediate rests or notes in glissandi

From LilyPond wiki
(Redirected from LSR 842)

Here's a way to add a ghost rest or headless note to a glissando with an unusual duration.

\version "2.24.0"

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

\relative c' {
  c4 d e g\glissando
  
  \once\override NoteColumn.glissando-skip = ##t
  \once \override Parentheses.font-size = #2
  
  \parenthesize r8 c'4. r2
  c,,4 d e g\glissando
  
  \once\override NoteColumn.glissando-skip = ##t
  \once \override NoteHead.transparent = ##t
  % If the stem doesn't align well with the glissando, it may need repositioning. e.g.:
  \once \override NoteHead.stem-attachment = #'(1 . 0)
  
  f'8 c'4. r2
}