SCLOrkClock:
Filter:
SCLOrkTools/Classes (extension) | Quarks > SCLOrkTools

SCLOrkClock
ExtensionExtension

Network-based TempoClock for use in SCLOrk performance and composition.

Description

SCLOrkClock can be used as a TempoClock but takes its synchronization information from a SCLOrkClockServer, so will be synchronized in time to all other clocks connected to the same SCLOrkClockServer. This means that the beats value of each SCLOrkClock talking to the same time server, and with the same name, is synchronized. This allows for patterns and events to be played with the same quantization or scheduling on different computers in synchronicity.

Class Methods

.startSync

Call before creating clocks. Establishes a connection with the SCLOrkClockServer, starts to compute timing information, and gathers list of current active clocks.

Arguments:

serverName

A name or IP address of the SCLOrkClockServer.

.new

Create and return a new SCLOrkClock object. The first argument is for the network synchronization, and the remaining arguments are passed on to TempoClock: new.

Arguments:

name

A symbol describing a unique name of the clock. Any clocks created with the same name will share all information over the network.

NOTE: If a clock of this name already exists, all of the rest of the parameters will be ignored in favor of the existing clock parameters.
tempo

Starting tempo for the clock.

beatsPerBar

How many beats per bar at the start of the clock.

serverName

The name of the clock server to consult.

Returns:

A newly initialized SCLOrkClock.

Instance Methods

.beats

Allows for reading, but not changing, of the curent beat count.

.seconds

Allows for reading, but not changing, of the current seconds count.

.permanent

If true, the clock will survive calls to command+period.

Examples