Am 19.12.2010 21:26, schrieb jakob lund:
[...]
I think what happens is that the start note, passed to your function,
is already wrapped up in an object. \glissando is meant for use with a
single note, rather than with a music object.
Sounds reasonable.
You can use scheme to add the `start glissando' property to the object though:

\version "2.13.40"

slide = #(define-music-function (parser location length startnote)
                                (number? ly:music?)
                                #{
  \once\override Voice.Glissando #'minimum-length = $length
  \once\override Voice.Glissando #'springs-and-rods =
#ly:spanner::set-spacing-rods
      #(begin
            (set! (ly:music-property $startnote 'elements)
          (cons (make-music (quote GlissandoEvent))
                (ly:music-property $startnote 'elements)
                ))
       (ly:export     $startnote))
#})

{ \slide #7 a'' e'' }
Thanks for this example!

Regards,

Marc

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

Reply via email to