Hi Walt,

On 4/11/24 13:11, Walt North wrote:
> Hello, I would appreciate some help with this music function.
>
> The end goal is have a define function produce a glissando after a
> note going either up or down to undetermined second note.  For
> example a guitar slide down off the note.

If I'm understanding correctly what you're after there's an existing
function for this. Have a look at:
https://lilypond.org/doc/v2.24/Documentation/notation/expressive-marks-as-curves#index-fall-1
As an example:

\version "2.24.2"

musicOne = \relative c'' {
    r4 c4\bendAfter #+1 r2
    r4 c4\bendAfter #-1 r2
    r4 c4\bendAfter #+2 r2
    r4 c4\bendAfter #-2 r2
}

musicTwo = \relative c'' {
    \override Score.SpacingSpanner.shortest-duration-space = #4.0
    r4 c4\bendAfter #+1 r2
    r4 c4\bendAfter #-1 r2
    r4 c4\bendAfter #+2 r2
    r4 c4\bendAfter #-2 r2
}

\score {
    \musicOne
}

\score {
    \musicTwo
}

This gives:

[image: image.png]

--
Michael

Reply via email to