Eric

The key to discovering how to do this is \displayMusic.  Compile

\displayMusic { <a c >2 }

in LilyPond and the Scheme equivalent is shown in the console log.

In this case it is:

(make-music
 'SequentialMusic
 'elements
 (list (make-music
         'EventChord
         'elements
         (list (make-music
                 'NoteEvent
                 'duration
                 (ly:make-duration 1 0 1 1)
                 'pitch
                 (ly:make-pitch -1 5 0))
               (make-music
                 'NoteEvent
                 'duration
                 (ly:make-duration 1 0 1 1)
                 'pitch
                 (ly:make-pitch -1 0 0))))))

Trevor


----- Original Message ----- From: "Eric Knapp" <[EMAIL PROTECTED]>
To: "List lilypond-user" <[email protected]>
Sent: Saturday, July 12, 2008 3:36 PM
Subject: Creating Chorded Notes


Hi, all.

I'm trying to write a music function that creates chorded notes. I'm
starting simply and I'm stumped. How would I create this simple music
expression in a function?

 <a c>2

Is there a grob for these? What I'm working on is being able to
customize the individual NoteHead and Stem grobs for each note.

Thanks,

-Eric


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



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

Reply via email to