[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extract notes within music function
From: |
Aleksandr Andreev |
Subject: |
Re: Extract notes within music function |
Date: |
Wed, 7 Nov 2012 22:24:14 -0600 |
On Wed, Nov 7, 2012 at 2:28 PM, Gilles <address@hidden> 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