metronome – Parerga und Paralipomena http://www.michelepasin.org/blog At the core of all well-founded belief lies belief that is unfounded - Wittgenstein Wed, 20 Feb 2013 10:28:39 +0000 en-US hourly 1 https://wordpress.org/?v=5.2.11 13825966 A metronome object for Impromptu http://www.michelepasin.org/blog/2013/02/20/a-metronome-object-for-impromptu/ Wed, 20 Feb 2013 01:34:52 +0000 http://www.michelepasin.org/blog/?p=2319 Metronome: a device used by musicians that marks time at a selected rate by giving a regular tick. If you ever felt that you missed a metronome in Impromptu, here is a little scheme object that can do that job for you.

The make-metroclick function returns a closure that can be called with a specific time in beats, so that it plays a sound for each beat and marks the downbeat using a different sound.

Possibly useful in order to keep track of the downbeats while you compose, or just to experiment a little with some rhythmic figures before composing a more complex drum kit section.

Here’s a short example of how to use it:

Make-metronome relies on the standard libraries that come with Impromptu, in particular make-metro, which is described in this tutoriale and on this video. Essentially, it requires you to define a metro object first, e.g. (define *metro* (make-metro 120)).

Here’s the source code:

 

]]>
2319