Hi.

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.


TIA

---< snippet >---
\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
  >>
}

-- 
-mark.

Reply via email to