First, you register a function with clock_set(). Usually that function is called myobjectname_tick(). Then when it runs, you call clock_delay() to schedule when myobjectname_tick() will get called again.
.hc
On Mar 17, 2008, at 4:49 PM, Greg Surges wrote:
Thanks Claude and Georg,
It looks like this is the right track...
Looking at the metro code, I'm a little confused as to how the object continues to output bangs after the first. What does it mean that clock_delay "calls back"?
Thanks
On Mon, Mar 17, 2008 at 3:13 PM, Claude Heiland-Allen claudiusmaximus@goto10.org wrote: Greg Surges wrote:
Hi all,
Is there any way to have an external call a method periodically,
without
being triggered?
Clocks. Check the C API in "m_pd.h"..
I'm thinking of a histogram with a decay function, where the
values are
decremented every second (or other time value).
I've done something like this with Lua, although I had the decrementing done by a [gemhead] not an internal clock, for tighter syncing with visuals. That's what made the keys fade from orange->grey->blue, if you happened to be at LAC Club Night during my set.
Thanks!
-Greg
Claude
http://claudiusmaximus.goto10.org
-- http://www.uwm.edu/~gssurges/ _______________________________________________ PD-dev mailing list PD-dev@iem.at http://lists.puredata.info/listinfo/pd-dev
------------------------------------------------------------------------ ----
Using ReBirth is like trying to play an 808 with a long stick. - David Zicarelli