[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating click tracks for an arbitrary time signature and length of
From: |
Matt Wallis |
Subject: |
Re: Creating click tracks for an arbitrary time signature and length of music |
Date: |
Fri, 20 Dec 2019 00:44:08 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 |
On 19/12/2019 23:27, Karlin High wrote:
On Thu, Dec 19, 2019 at 5:03 PM Matt Wallis <address@hidden> 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 :-)