<div style="color:black;font: 10pt arial;">
<div>I recently implemented a variant of delread~ that can have it's delwrite~ set. Basically in the "set" message</div>

<div>I just did most of the things normally done in the dsp method. Instead of sending the pointer to the delwritectl to the perform</div>

<div>method using dsp_add, instead I send a pointer to a pointer to the delwritectl that is stored in the object dataspace.</div>

<div>That way, when a different delwrite is set I just have to store the pointer in the object dataspace and dereference it correctly</div>

<div>in the perform method:</div>

<div>you can see it in the .c files in this commit</div>

<div><span style="font-size: 10pt;">https://github.com/sebshader/shadylib/commit/8bdf985aacb3979e776ad4e2487c451fadb9864a</span><br>
</div>

<div><br>
</div>

<div>-seb</div>

<div><br>
<br>

<div style="font-family:helvetica,arial;font-size:10pt;color:black"><font size="2">-----Original Message-----<br>
From: Alexandre Torres Porres <porres@gmail.com><br>
To: Christof Ressi <info@christofressi.com><br>
Cc: Pd-List <pd-list@lists.iem.at><br>
Sent: Mon, Mar 1, 2021 5:08 pm<br>
Subject: Re: [PD] how to force the DSP call? / set delread~ delay name<br>
<br>

<div id="yiv7523488932">
<div>
<div dir="ltr">
<div dir="ltr">
<div class="yiv7523488932gmail_quote">
<div class="yiv7523488932gmail_attr" dir="ltr">Em seg., 1 de mar. de 2021 às 20:40, Alexandre Torres Porres <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:porres@gmail.com" target="_blank" href="mailto:porres@gmail.com">porres@gmail.com</a>> escreveu:<br clear="none"></div>
<blockquote class="yiv7523488932gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;">
<div dir="ltr">
<div dir="ltr">I can also try a PR</div>
</div>
</blockquote>
<div><br clear="none"></div>

<div>I  give up already, waiting for you :)</div>
</div>
</div>
<br clear="none">
<div class="yiv7523488932gmail_quote">
<div class="yiv7523488932yqt8832963015" id="yiv7523488932yqtfd11335">
<div class="yiv7523488932gmail_attr" dir="ltr">Em seg., 1 de mar. de 2021 às 21:02, Christof Ressi <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:info@christofressi.com" target="_blank" href="mailto:info@christofressi.com">info@christofressi.com</a>> escreveu:<br clear="none"></div>
<blockquote class="yiv7523488932gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;">
  
    
  
  
<div>
    
<div>
      </div>
Pd objects are (unfortunately) not notified on connection changes
      and I can't think of a sane way to work around this. The real
      solution would be to add an API for object state change
      notifications. In the meantime, I would say: forget about it.</div>
</blockquote></div>

<div><br clear="none"></div>

<div>forgotten, but: <a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://github.com/pure-data/pure-data/issues/1275">https://github.com/pure-data/pure-data/issues/1275</a></div>

<div><br clear="none"></div>

<div>while we're at it, any reason why not to have a "set" method for [send~] and [catch~]? Seems inconsistent</div>
</div>
</div>

<div class="yiv7523488932yqt8832963015" id="yiv7523488932yqtfd68819">
</div>
</div>
</div>

<div class="yqt8832963015" id="yqtfd42307">_______________________________________________<br clear="none"><a shape="rect" ymailto="mailto:Pd-list@lists.iem.at" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br clear="none">UNSUBSCRIBE and account-management -> <a shape="rect" href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br clear="none"></div>
</font></div>
</div>
</div>