Home | Trees | Indices | Help |
|
---|
|
object --+ | threading._Verbose --+ | threading.Thread --+ | theTime.TheTime --+ | TheTime2
The class containing accurate timer and timed queue methods.
Thread safe queue handling is inherited from theTime.py. Automation is executed via a queue of events to be executed in time, format for the queue is a list of events, with each event represented as a list with the following format: [type, time, data]. The type field is a string, to be parsed in eventCaller.parseEvents(). Time is in beats and may be fractional. The data field may contain several parameters (not as sublist).
|
|||
|
__init__(self,
eventCaller,
bpm=60) The class constructor. |
||
|
doKsmpsTick(self) The main clock increment method, called from csound every ksmps period, also polling the event queue. |
||
|
setBpm(self,
bpm) Set the clock tempo in beats per minute. |
||
|
setTimePerKperiod(self,
kr) Set the time per control rate tick from csound. |
||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
|
queueMutex The mutex for thread safe handling of the queue list. |
||
|
queue The list of events in the timed queue. |
||
|
beatCounter Counter for quarter notes at a given bpm. |
||
|
fractionalBeat Counter for fractions of a beat. |
||
|
bpm The tempo in beats per minute for the beat counter. |
||
|
runClock Flag to run or pause the clock. |
||
|
csoundKr Csound control rate, value will be set by csound at (csound) init. |
||
Inherited from |
|
|||
Inherited from |
|
|
|
|
|
|
queueMutexThe mutex for thread safe handling of the queue list. |
queueThe list of events in the timed queue. |
beatCounterCounter for quarter notes at a given bpm. |
fractionalBeatCounter for fractions of a beat. |
bpmThe tempo in beats per minute for the beat counter. |
runClockFlag to run or pause the clock. |
csoundKrCsound control rate, value will be set by csound at (csound) init. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Mon Feb 23 14:31:59 2009 | http://epydoc.sourceforge.net |