lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Music function help


From: Mark Probert
Subject: Music function help
Date: Sun, 2 Oct 2022 13:36:48 +1100

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

[Prev in Thread] Current Thread [Next in Thread]