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: Jean Abou Samra
Subject: Re: "compound music expression" to "music" expression"
Date: Fri, 23 Apr 2021 10:58:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1


Le 23/04/2021 à 10:52, Gianmaria Lari a écrit :
How can I convert a "compound music _expression_" made of just *one* "music _expression_" to a music _expression_?
So something that "removes" curly brackets. 

For example it should convert 

{<a b c>} 
to 
<a b c>

Thanks, g.


If you have it at hand in Scheme:

\version "2.23.

#(define (first-element music)
   (first (ly:music-property music 'elements)))

{ #(first-element #{ { c'1 } #}) }

It would be helpful to understand your use
case; this sounds like you may not necessarily
need to unpack a sequential music _expression_.

Regards,
Jean


reply via email to

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