lilypond-user
[Top][All Lists]
Advanced

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

Re: creating a rhythm click track


From: Johan Vromans
Subject: Re: creating a rhythm click track
Date: Mon, 15 Apr 2013 23:00:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Paul Malcolm <address@hidden> writes:

> Or maybe there is a much simpler better way to do this ? 

I often do this with music that has a chords track.

makeUnfold =
#(define-music-function (parser location name mus) (ly:music? ly:music?)
  (let ((r (make-repeated-music "unfold")))
    (set! (ly:music-property r 'element) mus)
    (set! (ly:music-property r 'repeat-count)
          (ly:moment-main-numerator (ly:music-length name)))
    r))

harmonics = \chordmode {
  c2 g | c g | f1 | c2 g |
}

% Create metronome ticks. This example assumes 4/4 .
ticktock = \drummode {
  \makeUnfold \unfoldRepeats \harmonics {
    hiwoodblock 4 lowoodblock lowoodblock lowoodblock
  }
}

\harmonics goes in a Chord staff, and \ticktock goes in a DrumStaff.

HTH,

-- Johan




reply via email to

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