[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Music function help
From: |
Aaron Hill |
Subject: |
Re: Music function help |
Date: |
Sat, 01 Oct 2022 19:48:22 -0700 |
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