lilypond-user
[Top][All Lists]
Advanced

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

scheme function returning #beats and beat duration


From: Gianmaria Lari
Subject: scheme function returning #beats and beat duration
Date: Fri, 22 Jun 2018 14:46:02 +0200

Is there any scheme function returning the number of beats and the duration of each beat of the mesure where the function is invoked?
For instance, I would like this code..

\version "2.19.81"
{
 \time 3/4  
 \writeBeats \writeBeatDuration 
 a4 b a %just some music
 
 \time 4/4
 \writeBeats \writeBeatDuration
 a4 b a b  
 
 \time 2/8
 \writeBeats \writeBeatDuration
 a8 b  
}

... output:

3 4
4 4
2 8.

Thank you, g.

reply via email to

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