Writing intermediate rests or notes in glissandi

Revision as of 18:56, 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)

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

\version "2.24"

%% 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
}