19 #define thisTTClass TTClock
23 TTClock::TTClock(
const TTValue& arguments) :
37 mCallback = TTClockPositionCallback((
TTPtr)arguments[0]);
38 mBaton = arguments[1];
84 if (value.
size() == 1) {
112 if (value.
size() == 1) {
131 if (value.
size() == 1) {
157 void TTClockLib::getClockNames(
TTValue& ClockNames)
TTErr setSpeed(const TTValue &value)
set the speed factor attribute new speed factor
#define addAttribute(name, type)
A convenience macro to be used by subclasses for registering attributes with a custom getter...
size_type size() const noexcept
Return the number of elements.
TTErr sendNotification(const TTSymbol name, const TTValue &arguments)
Send a notification.
Base class for all first-class Jamoma objects.
TTFloat64 mDate
ATTRIBUTE : how many time the clock is running (without no speed factor consideration) ...
TTErr setDuration(const TTValue &value)
set the duration attribute new duration
double TTFloat64
64 bit floating point number
void append(const T &anElementValueToAppend)
Insert a single TTElement at the end.
void * TTPtr
A generic pointer.
#define addAttributeProperty(attributeName, propertyName, initialValue)
A convenience macro to be used for registering properties of attributes.
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
Boolean (1/0) or (true/false) flag.
A value was not found when doing a look up for it (in a TTHash, TTList, or other class).
void clear()
Clear all values from the vector, leaving with size of 0.
Something went wrong, but what exactly is not known. Typically used for context-specific problems...
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
TTFloat64 mSpeed
ATTRIBUTE : the speed factor of the clock.
#define addAttributeWithSetter(name, type)
A convenience macro to be used by subclasses for registering attributes with a custom setter...
#define addMessage(name)
A convenience macro to be used by subclasses for registering messages.
virtual ~TTClock()
Destructor.
TTFloat64 mPosition
ATTRIBUTE : the progression of the clock between the beginning and the end [0. :: 1...
TTErr setOffset(const TTValue &value)
set the offset attribute new offset
TTFloat64 mOffset
ATTRIBUTE : the date (in ms) the sheduler will run from.
TTFloat64 mDuration
ATTRIBUTE : the time (in ms) the clock will run at normal speed factor.
[doxygenAppendixC_copyExample]