This class represents the concept of tempo. It can be used for translations between seconds, beats and bars. It holds an instance of TempoClock which it keeps set to its own tempo.
It can be used to convert beats <-> seconds, but this value is only accurate at the time you make the computation. If the tempo is changed the value is no longer valid.
TempoBus adds itself as a dependant to the Tempo object, so when the tempo changes, it is informed, and it updates the value on the bus.
All class methods refer to the default global tempo. You can create an instance of Tempo if you need individual, separate tempii.
Arguments:
tempo |
tempo in beats per second |
tempoClock |
The TempoClock that this Tempo object will control |
beats per minute
Arguments:
convert beats to seconds
Arguments:
convert seconds to beats
Arguments:
tempo in beats per second
Arguments:
when used in an Instr in a Patch this will insert a control rate UGen that will emit the tempo. changing the tempo in the language will change this tempo on the server.
Discussion:
when used in an Instr in a Patch this will convert beats to seconds, inserting a control rate UGen with the result.
Arguments:
Bored with the old 4/4 ? Tempo.beatsPerBar = 7.0;
Arguments:
Tempo.kr