David Kastrup <[email protected]> writes: > "Joao E. Pereira Jr" <[email protected]> writes: > >> On Sun, Jan 13, 2013 at 9:35 AM, David Kastrup <[email protected]> wrote: >>> "Joao E. Pereira Jr" <[email protected]> writes: >>> >>>> Many of the tokens parser reads ask for Music object creation so it >>>> calls MY_MUSIC_SYNTAX macro, as this object represents music content >>>> and layout even a one note ly file can lead to a considerable number >>>> of Music objects, so I deduce it plays an importante role in >>>> architecture. A lot of Music objects are created, but is not clear how >>>> they are stored in memory, or which data structure is used to handle >>>> them. >>> >>> They are of type ly:music?, check out lily/include/music.hh for their >>> structure. >>> >> >> Suppose I have the following ly code { c d e }, I think that in >> parsing 3 objects of ly:music? type will be produced and I'm wondering >> where this 3 objects would be put into: an array, a vector, a list? > > A list, stored in the 'elements property of another Music structure of > type SequentialMusic.
Perhaps you should make yourself acquainted with the \displayMusic command. It should better help you understanding the structure of given input. I think that the "Extending LilyPond" guide should contain quite a bit of material about the form of music expressions. -- David Kastrup _______________________________________________ lilypond-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-devel
