On Wed, Nov 7, 2012 at 2:28 PM, Gilles <gilles.thiba...@free.fr> wrote: > > >> Is it possible to extract individual notes from the music passed to a music >> function, e.g.: >> \myFunction { c d e f } >> Within myFunction, can I do something like >> car notes >> cdr notes > > > Here is a kind of template, but i am not absolutely sure it's what you want. > > %%%%%%%%%%%%%%%%%%%% > > myFunction = #(define-music-function (parser location music)(ly:music?)
Thanks, this gets me on the right track. Is it possible to do something just with the first and last notes of music within? Can they be extracted from music as from a list? (Hence my reference in the original post to car and cdr)? Thanks, Aleksandr _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user