lilypond-user
[Top][All Lists]
Advanced

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

Re: Chord from a variable


From: Volker Paul
Subject: Re: Chord from a variable
Date: Mon, 8 Aug 2011 21:57:51 +0200
User-agent: KMail/1.13.5 (Linux/2.6.34-020634-generic; KDE/4.4.5; i686; ; )

On Sunday, August 07, 2011 23:05:21 you wrote:
> \version "2.14.2"
> 
> v = { c }
> 
> \musicMap #(lambda (m)
>              (and (music-has-type m 'event-chord)
>                   (= (length (ly:music-property m 'elements)) 1)
>                   (let ((elt (car (ly:music-property m 'elements))))
>                     (set! (ly:music-property m 'elements)
>                           (construct-chord-elements
>                            (ly:music-property elt 'pitch)
>                            (ly:music-property elt 'duration)
>                            '()))))
>              m)
> 
> \chordmode { \v c:min }

Great, that comes very close to what I have been looking for.
At least I have a point to start from. Thanks a lot.

Cheers,

Volker



reply via email to

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