|
From: | Pierre Perol-Schneider |
Subject: | Re: All but last note |
Date: | Fri, 29 Jan 2016 12:28:18 +0100 |
PierreCheers,It seems that 'drop-right' is not the right procedure. What else should I use?Here's the function:Hi List,I'd like to add glissandi to a group of notes except the last one.
glissandi =
#(define-music-function (parser location music) (ly:music?)
"Add a glissando to all but last note"
(let ((all-but-last-note (drop-right (ly:music-property music 'elements))))
(set!
(ly:music-property all-but-last-note 'articulations)
(cons (make-music 'GlissandoEvent)
(ly:music-property all-but-last-note 'articulations)))
music))
\relative c' {
\glissandi { c d e f }
c
}
[Prev in Thread] | Current Thread | [Next in Thread] |