lilypond-user
[Top][All Lists]
Advanced

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

Re: "compound music expression" to "music" expression"


From: David Kastrup
Subject: Re: "compound music expression" to "music" expression"
Date: Sat, 24 Apr 2021 08:10:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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



reply via email to

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