On 19/12/2019 23:27, Karlin High wrote:
On Thu, Dec 19, 2019 at 5:03 PM Matt Wallis <[email protected]> wrote:
What I want to do is to automatically create a click track for any
length of music, and any time signature.

I remember a similar question for generating a continuous-drone track
for bagpipes.

<https://lists.gnu.org/archive/html/lilypond-user/2018-05/msg00512.html>

I can see why that's relevant with regards to the length of the music, but I'm struggling to understand the details of the scheme fragment:

#(ly:music-compress #{ c'1 #} (ly:music-length musicwithdrone))

From http://lilypond.org/doc/v2.19/Documentation/internals/scheme-functions, I see:

   Function: ly:music-length mus
Get the length of music expression mus and return it as a Moment object.

and

   Function: ly:music-compress m factor
             Compress music object m by moment factor.

but I don't really understand what that means. How is the Moment object related to the number of measures in \musicwithdrone ?

And what is meant by /compressing/ a music object by a factor?

To reach a solution, I'll also need to understand how to get the "1" in "c'1" from a variable (actually, the denominator of the time signature), rather than being literal "1".

Perhaps I'm trying to run before I can walk :-)


Reply via email to