<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div><br class="webkit-block-placeholder"></div><div>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.</div><div><br class="webkit-block-placeholder"></div><div>.hc</div><br><div><div>On Mar 17, 2008, at 4:49 PM, Greg Surges wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Thanks Claude and Georg,<br><br>It looks like this is the right track...<br>  <br>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"? <br> <br>Thanks<br><br><br>On Mon, Mar 17, 2008 at 3:13 PM, Claude Heiland-Allen &lt;<a href="mailto:claudiusmaximus@goto10.org">claudiusmaximus@goto10.org</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div class="Ih2E3d">Greg Surges wrote:<br> &gt; Hi all,<br> &gt;<br> &gt; Is there any way to have an external call a method periodically, without<br> &gt; being triggered?<br> <br> </div>Clocks.  Check the C API in "m_pd.h"..<br> <div class="Ih2E3d"><br> &gt; I'm thinking of a histogram with a decay function, where the values are<br> &gt; decremented every second (or other time value).<br> <br> </div>I've done something like this with Lua, although I had the decrementing<br> done by a [gemhead] not an internal clock, for tighter syncing with<br> visuals.  That's what made the keys fade from orange-&gt;grey-&gt;blue, if you<br> happened to be at LAC Club Night during my set.<br> <br> &gt; Thanks!<br> &gt;<br> &gt; -Greg<br> <br> <br> Claude<br> <font color="#888888">--<br> <a href="http://claudiusmaximus.goto10.org" target="_blank">http://claudiusmaximus.goto10.org</a><br> <br> </font></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.uwm.edu/~gssurges/">http://www.uwm.edu/~gssurges/</a><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">PD-dev mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:PD-dev@iem.at">PD-dev@iem.at</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://lists.puredata.info/listinfo/pd-dev">http://lists.puredata.info/listinfo/pd-dev</a></div> </blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><br class="Apple-interchange-newline"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><br></div><div>----------------------------------------------------------------------------</div><div><br></div><div>Using ReBirth is like trying to play an 808 with a long stick.    -David Zicarelli</div><br class="Apple-interchange-newline"></span></span> </div><br></body></html>