Allocates a control bus on the server, and plays regular impulses on it.
It plays one new synth every beat, with subdiv
pulses in each beat. This maintains precise sync with the language-side clock. (The server's sample rate fluctuates according to the audio interface. If you simply run one synth for several minutes, the deviation in sample rate will cause the server-side pulses to drift out of sync with the clock. TempoClick refreshes the sync every beat.)
Creates a new instance, and launches the impulses on the next clock beat.
server |
(The server that will host the control bus. |
clock |
An instance of TempoClock to sync with. |
bus |
Optional. If you wish to specify a control bus, do it here. If this is |
subdiv |
How many pulses per beat. |
The TempoClick instance.
Deprecated. No longer used.
Start the pulses on the bus. This is done automatically by *new.
Stop the pulses, but keep the bus.
Stop the pulses and release the bus.
Synonym for -free.
The control Bus object.
The control bus's numeric index (integer).
A bus-mapping Symbol, compatible with Bus: -asMap.
Synonym for -asMap.
Called automatically if you use a TempoClick in a Synth argument list, e.g. Synth(\triggered, [t_trig: aTempoClick])
. See the example below.
A bus-mapping Symbol, same as -asMap.
An In UGen, providing the triggers as a server-side signal. If c
is the TempoClick instance, you can write e.g. Decay2.kr(c, 0.01, 0.1)
to hardcode the clicks into your SynthDef. (Note, however, that it's better practice to provide a trigger input to the SynthDef, and map the control bus as demonstrated in the example.)
In.kr(bus, 1)
.
The Server hosting the impulses.
The clock used for sync.
clock_
method is defined, so it looks like you might be able to change the clock on the fly. clock_
comes from Object. It has no function for TempoClick. The only way to switch to a different clock is to create a new TempoClick instance.Gets or sets the subdivision (number of pulses per beat).
s |
Number of pulses per beat (integer or float). |
For convenience, you can get or set the clock's tempo here. These methods are forwarded to the clock.
tempo |
Beats per second, as in TempoClock. |
There is no particular need to do this, but you can find out which nodeID is playing the impulses at any moment. The synth refreshes once per beat. To avoid using up too many node IDs, TempoClick bounces between two adjacent IDs.
The current node ID (changes once per beat).