{ \hideNotes b4*1/4  \glissando\unHideNotes d'4*3/4 } this also works.

On Sat, Feb 28, 2026 at 7:56 AM Ritchie Fraser <[email protected]> wrote:
>
> Dude!
>
> That was a super speedy reply and exactly what I needed!
>
> ...and it works in \version "2.22.1" which is what i currently have installed 
> (from the Ubuntu 22.04 repo)
>
> Thank you
>
>
> On 28/02/2026 12:46, Michael Werner wrote:
>
> 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