Indeed it is, Aaron! Thank you!

I have to admit the disposition, or not, of braces confuses me. Seems like
they are optional in some places, and not in others, such as here. Is there
a rule behind when they are needed?

On Sun, Oct 2, 2022 at 1:48 PM Aaron Hill <lilyp...@hillvisions.com> wrote:

> On 2022-10-01 7:36 pm, Mark Probert wrote:
> > I'm just starting to play more with music functions and obviously
> > haven't
> > got something. I'm want to create a basic substitution-style function
> > to
> > create a vocal portamento. The code I have so far doesn't work
> > correctly
> > and I wonder if someone can point me in the right direction.
>
> Is this what you were intending?
>
> %%%%
> \version "2.22"
>
> portamento =
> #(define-music-function
>    (start end) (ly:music? ly:music?)
>    #{
>    \afterGrace { #start \glissando } #end
>    #})
>
> tune = \relative c'' {
>    r2 \portamento g2 g'8 |
> }
>
> \score {
>    <<
>      \new Staff \tune
>    >>
> }
> %%%%
>
>
> -- Aaron Hill
>


-- 
-mark.

Reply via email to