Class Jack.Timebase

implements Time.Clock

A Time.Clock that acts as a JACK timebase master.

Constructors

Timebase(float bpm) create a new JACK timebase master

Methods

onSync(function handler, bool wait) register a callback for JACK transport sync.
reposition(float location) request an immediate reposition of the transport to the given location
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


Timebase(float bpm)

Create a new JACK timebase master

Parameters

Method Documentation


void onSync(function handler, bool wait)

Register a callback for JACK transport sync.

Parameters


void reposition(float location)

Request an immediate reposition of the transport to the given location. Note the existence of JACK slow-sync clients may delay the reposition until all clients are ready.

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.