<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>what you want is a "t_clock". clock_new() takes a function
      pointer + void pointer. You can then schedule the function for
      execution with clock_delay().</p>
    <p>For a simple example, check the source code for the delay object
      ("t_delay") in "x_time.c".<br>
    </p>
    <p>Christof<br>
    </p>
    <div class="moz-cite-prefix">On 07.06.2021 01:21, Iain Duncan wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAN9NcLzU6x9fsL-A1hgWmtyvdGBDNsG+uXuHbM8eL_s0kyR2MA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi folks, I'm hoping someone can point me in the
        right direction here. I'm porting Scheme for Max to pure data
        and I'm stuck figuring out how to get delayed functions going.
        In Max, the SDK has a facility to make register a callback to
        executed at some point in the future, a few different ways. Is
        there a Pd equivalent, and if so, could anyone point me at
        resources or code for it?  I basically just need to be able to
        have a callback fire off at the right time with one argument,
        which can be void pointer to the rest of the stuff i want to
        get.
        <div><br>
          <div>thanks!</div>
          <div>iain</div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Pd-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a>
<a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-dev">https://lists.puredata.info/listinfo/pd-dev</a>
</pre>
    </blockquote>
  </body>
</html>