|
From: | Mark Probert |
Subject: | Re: Music function help |
Date: | Sun, 2 Oct 2022 14:18:25 +1100 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |