On 7 August 2011 19:14, Volker Paul <[email protected]> wrote:

> Is there such a thing as forcing a mode change when READING the variable?
> Or is there another function that builds a chord on a
> note stored in a variable?

\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 }

`construct-chord-elements' is the internal function which the parser
uses to generate chords in \chordmode.

Cheers,
Neil

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to