|
From: | Gianmaria Lari |
Subject: | Re: "compound music expression" to "music" expression" |
Date: | Sat, 24 Apr 2021 08:21:40 +0200 |
Gianmaria Lari <gianmarialari@gmail.com> writes:
> Thank you Aaron and Jean, your code works!
>
> But I have some trivial questions.
> If I write:
>
> \displayLilyMusic \chordmode {c}
>
>
> I get:
>
> { < c' e' g' >4 }
>
>
> It looks a good "compound music _expression_".
> But Aaron code and Jean code behave differently. Have a look here
> This does not work.
>
> \version "2.23.2"
> #(define (extract music)
> (first (ly:music-property music 'elements)))
>
> { #(first-element #{ \chordmode {c} #}) }
You define a function called "extract" but call a function called
"first-element".
--
David Kastrup
[Prev in Thread] | Current Thread | [Next in Thread] |