Class Time.VariableClock

implements Time.Clock

A Time.Clock that allows scheduling tempo and time signature changes.

Constructors

VariableClock(float bpm)

Properties

tempo current clock tempo in beats per minute.

Methods

reposition(float location, float measure) reposition to the given location in time.
schedule(Time.Signature signature, integer bar) schedule a time signature change at a given measure.
schedule(float tempo, float measure) schedule a tempo change at a given time
start() immediately request the clock to start
stop() immediately request the clock to stop

Constructor Documentation


VariableClock(float bpm)

Parameters

Property Documentation


float tempo

Current clock tempo in beats per minute.

Method Documentation


void reposition(float location, float measure)

Reposition to the given location in time.

Parameters


void schedule(Time.Signature signature, integer bar)

Schedule a time signature change at a given measure.

Parameters


void schedule(float tempo, float measure)

Schedule a tempo change at a given time

Parameters


void start()

immediately request the clock to start


void stop()

immediately request the clock to stop



Creative Commons Logo This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.