On 2026-02-28 07:21, Ritchie Fraser wrote:
relative c' {
    \clef bass
    \hideNotes \grace b16 \glissando \unHideNotes f8 r8 r4
    \hideNotes \grace b16 \unHideNotes \glissando f8 r8 r4
}

This seems to accomplish what you're showing. I adapted the function from the "Extending glissandi across repeats" section of https://lilypond.org/doc/v2.25/Documentation/notation/expressive-marks-as-lines

\version "2.24.4"

startGliss = #(define-music-function (grace)
  (ly:pitch?)
  #{
    % the next two lines ensure the glissando is long enough
    % to be visible
    \once \override Glissando.springs-and-rods
      = #ly:spanner::set-spacing-rods
    \once \override Glissando.minimum-length = 3.5
    \once \hideNotes
    \grace $grace \glissando
  #})

\score {
  \relative c' {
    \clef bass
    \startGliss b, f'8 r8 r4
    \startGliss b, f'8 r8 r4
  }
}

--
Michael

Reply via email to