PMA <peterarmstr...@aya.yale.edu> writes:

> Hi List.
>
> I would like to alter this function...
>
> glissmove = {
>   \once \override Glissando #'(bound-details left Y) = #1.3
>   \once \override Glissando #'(bound-details right Y) = #1.3
> }
>
> to accept its 1.3 or whatever as an input parameter instead.
>
> I see docs on parameterizing Scheme functions, but not on
> doing this in LilyPond directly -- LP's param handing syntax.
> Have I overlooked something obvious?

It is not a function but a music constant.  To make a function, write

glissmove =
#(define-music-function (parser location offset) (number?)
  #{
    \once \override Glissando #'(bound-details left Y) = #offset
    \once \override Glissando #'(bound-details right Y) = #offset
  #})

Check the "Extending LilyPond Guide" for define-music-function.

-- 
David Kastrup


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to