<html>
<head>
</head>
<body>
hi,<br>
<br>
this really depends on the way the variables<br>
holding the conditions are declared.<br>
<br>
to be different for each instance,<br>
they must in the object structure like :<br>
<br>
typedef struct _cooled<br>
{<br>
&nbsp;&nbsp;&nbsp; t_object x_obj;<br>
<br>
&nbsp;&nbsp;&nbsp; t_float x_readpos;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* data's playing position&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*/<br>
&nbsp;&nbsp;&nbsp; t_int x_writepos;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* data's recording position&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*/<br>
&nbsp; &nbsp; .....<br>
}<br>
<br>
pd is not faulty here, i'm certain.<br>
<br>
cheers,<br>
<br>
sevy/yves<br>
<br>
Ben Bogart - FMPM/F1999 wrote:<br>
<blockquote type="cite" cite="mid:Pine.A32.3.91.1020721122307.22904F-100000@hopper">
  <pre wrap="">Thanks Miller,<br><br>I did not explian my problem concisely. I have a PD external (in C) which <br>has a struct which contains the starting condisions of the system. These <br>variables are set in the lorenz_new method. Then each invocation of the <br>"lorenz" method actually calculates one interation of the algorithm. My <br>problem is that when I have more than one object the construction of the <br>second instance of the object reset the conditions of *both* instances. <br>How do give two instances of the same PD external different data-spaces? <br><br>I'll send my ocde if I'm not being clear enough.<br><br>Thanks<br>Ben <br><br><br>On Sat, 20 Jul 2002, Miller Puckette wrote:<br><br></pre>
  <blockquote type="cite">
    <pre wrap="">Hi Ben,<br><br>Just back from vacation, trying to get back in the swing now...<br><br>Are you having trouble because "sends" and "receives" are talking between the<br>instances or something like that?  If so, use "send $0-your-name-here" and<br>it will expand to a private name for each instance.  (table, value, and other<br>things that use names should all work the same way...)<br><br>cheers<br>Miller<br><br>On Sat, Jul 20, 2002 at 09:58:24PM -0400, Ben Bogart - FMPM/F1999 wrote:<br></pre>
    <blockquote type="cite">
      <pre wrap="">Thanks Miller,<br><br>While I'm thanking you I might as well ask a question. I've just <br>implemented the "lorenz attractor" as a PD external, but I seem to only <br>be able to have one instance of it, they interfere with one and other. Is <br>the struct (dataspace) of an external shared across instances? If so how <br>can I make a seperate dataspace for each instance? <br><br>I'm teaching a little PD workshop at Interaccess (<a class="moz-txt-link-abbreviated" href="http://www.interaccess.org">www.interaccess.org</a>) in <br>about a months time. Hoping to convert a few of those MAX users. ;)<br><br>Hope your vacation is going well (if you still on it?)<br><br>Ben<br><br>On Sat, 20 Jul 2002, Miller Puckette wrote:<br><br></pre>
      <blockquote type="cite">
        <pre wrap="">Wow, spiffy<br><br>cheers<br>Miller<br><br>On Wed, Jul 10, 2002 at 01:51:30PM -0400, Ben Bogart - FMPM/F1999 wrote:<br></pre>
        <blockquote type="cite">
          <pre wrap=""><a class="moz-txt-link-abbreviated" href="http://www.dcn.ryerson.ca/~bbogart/pollock.jpg">www.dcn.ryerson.ca/~bbogart/pollock.jpg</a><br><br>Special thanks to Jamie for the OSX port! <br><br>Ben<br><br><br><br>B. Bogart<br>---------<br><br></pre>
          </blockquote>
          </blockquote>
          <pre wrap=""><br><br>B. Bogart<br>---------<br><br><br><br>_______________________________________________<br>PD-dev mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:PD-dev@iem.kug.ac.at">PD-dev@iem.kug.ac.at</a><br><a class="moz-txt-link-freetext" href="http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev">http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev</a><br></pre>
          </blockquote>
          </blockquote>
          <pre wrap=""><!----><br><br><br>B. Bogart<br>---------<br><br><br>_______________________________________________<br>PD-dev mailing list<br><a class="moz-txt-link-abbreviated" href="mailto:PD-dev@iem.kug.ac.at">PD-dev@iem.kug.ac.at</a><br><a class="moz-txt-link-freetext" href="http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev">http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-dev</a><br><br><br></pre>
          </blockquote>
          <br>
          </body>
          </html>