SoftClock:
Filter:
ListeningClocks (extension) | Clocks

SoftClock
ExtensionExtension

a clock that does smooth tempo transitions.

Description

SoftClock allows to make smooth tempo transitions. See TempoClock for most methods. SoftClock was developed for the project Virtual Gamelan Graz by Rainer Schütz, Alberto de Campo, and Julian Rohrhuber.

Class Methods

.all

Like TempoClock, SoftClock keeps track of its instances so that they may be stopped globally. To keep a clock running, set permanent = true. To remove a permanent clock, use the message stop.

.stopAll

Stop all SoftClocks.

Instance Methods

.tempo

Get tempo or set newTempo given.

.fadeTempo

Move to new tempo over a given time (dur - default: 1.0) and in a given transition shape (warp - default: \cos). This transition normally happens within the frame of reference of SystemClock (seconds), however a different clock may be passed in the clock argument.

.warpTempo

Modify the tempo to a fraction (frac) of the current tempo over a given duration (beats - default: 1.0) and with a given shape (warp - default: \cos). The time base is the clock itself.

.pause

Set the tempo to zero over dur (default: immediately)

.rateOfChange

Returns the current change rate.

.beatWrap

If nBeats is given, the clock will not catch up with the absolute phase of the others, but only within the given number of beat cycles. This is useful to avoid confusion after fast tempo changes given that the music has a circular event structure where absolute phase does not matter.

Examples