TempoPlayer:
Filter:
crucial-library/Classes (extension) | Libraries > crucial > Players | Libraries > crucial > Scheduling

TempoPlayer
ExtensionExtension

a control rate player that plays the TempoBus [which is the current Tempo]

Description

Outputs the current tempo in beats per seconds. All TempoPlayers share the same TempoBus, and so don't incur any additional resources.

The TempoPlayer is an input to the patch, and creates a TempoBus and supplies that control to the instr synth def. Move the tempo slider.

A TempoBus belongs to a specific server for its whole object-lifetime. A TempoPlayer is only told which server it is to play on when it is asked to prepare for play by its parent object. A TempoPlayer can be saved in a larger musical structure and that structure is capable of being played on disparate servers.

the symbol \tempo is registered in Spec.specs as a TempoSpec

whose defaultControl is a TempoPlayer

so that the argname tempo in an Instr would by default result in a TempoPlayer for a Patch using that Instr.

execute this many times

Class Methods

.new

Arguments:

tempo

Instance Methods

.tempo

.kr

.synthArg

.makeResourcesToBundle

Arguments:

bundle

.makePatchOut

.freeResourcesToBundle

Arguments:

bundle

.spawnAtTime

.spawnToBundle

.loadDefFileToBundle

.asSynthDef

.spec

Examples

You can also create the player inside the synth def:

You can even just use Tempo.kr