[Sndobj-devel] getting the clock ticks
Status: Abandoned
Brought to you by:
veplaini
From: Vilson V. <vi...@vo...> - 2011-01-22 15:59:24
|
Hello, I'm trying to implement a scheduller in Python to deal with PySndObj units. The idea is to have a now() function that returns the current time as a sample counter. With that function, I can call something like play_note(now() + 2 * seconds()) that will trig some PySndObj unit at 2 seconds from now. Is there any way to get the clock ticks of an obj? I've tryied to create a call function on a SndThread that calls a function that increments a counter, but I don't know if it is the best way. It seems to be computational intensive. Any suggestion? Thanks. -- Vilson Vieira vi...@vo... ((( http://automata.cc ))) ((( http://musa.cc ))) |