ScoreClock:
Filter:
ScoreClock/Classes (extension) | Scheduling > Clocks | External Control > OSC

ScoreClock
ExtensionExtension

Create a Score by capturing OSC and timings

Description

ScoreClock simplifies NRT synthesis by capturing OSC messages and timings of anything sent to the default server, and returns a Score object that can then be rendered to file or played back.

2011 Jonatan Liljedahl

Class Methods

.beginScore

Start capturing. This must be called once before the code that you want to capture.

.makeScore

Create a Score object by running all items scheduled on this clock, capturing OSC messages and timings.

Arguments:

maxTime

The maximum duration in seconds of the score.

padding

Add this many seconds of padding after the last activity.

Returns:

A new Score object.

.default

A global default ScoreClock, similar to TempoClock.default. ScoreClock has classmethods that redirects to the default clock, so you can use simply ScoreClock.

.new

Create a new individual ScoreClock, mainly useful when there is need to run serveral clocks with different tempo.

Arguments:

tmp

Tempo in beats per second.

Discussion:

Even if you create several ScoreClocks, they all capture to a global score object.

.score

The current score object. You can add events manually to this if you want.

Examples

It works on Pbinds, Routines, etc:

You can create individual ScoreClocks with different tempo: