2010/1/18 Carl Sorensen <[email protected]>: > 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 _______________________________________________ lilypond-user mailing list [email protected] http://lists.gnu.org/mailman/listinfo/lilypond-user
