lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about scheme engravers


From: Neil Puttock
Subject: Re: Question about scheme engravers
Date: Wed, 20 Jan 2010 19:52:38 +0000

2010/1/18 Carl Sorensen <address@hidden>:

> First, you want to extract the music from the stream event, I think
>
> (ly:event-property event 'Music)  (but I'm not sure about this step)
>
> Once you have the music, then you get the elements of the music:
>
> (ly:music-property music 'elements)
>
> Now, elements is a list of music elements, so you'll want to get the
> duration from the first element of elements:
>
> (ly:music-property (car elements) 'duration)

There's no need to do all this; ly:event-property will access
'duration directly from the event.

Regards,
Neil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]