lilypond-user
[Top][All Lists]
Advanced

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

How to get the total length of Sequential Music


From: Hans Sommer
Subject: How to get the total length of Sequential Music
Date: Sun, 12 Oct 2014 09:38:16 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Hello,

I am relatively new to Lilypond. 
I try to check the total length of a SequentialMusic part, i.e. 


my_score_part = { c'4 d e f }

I want to get the result 4 quarters (or any other numerical representation)

and for 

my_score_part2 = { c'4 d e f g8}

should deliver 4 quarter and 1 eighth.

I found in the documentation the property:

 length-callback (procedure):

    ly:music-sequence::cumulative-length-callback 


but I don't know how to use it.

I would be very thankful, if anybody could provide an example.

Best regards


Hans





reply via email to

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