<div dir="ltr">Hi Ed,<div><div>The prototype of your perform method is wrong. You should have something like:</div><div>static t_int *wrap_overshoot_tilde_perform(<wbr>t_int *w)</div><div>{</div><div>    t_wrap_overshoot_tilde *x = (t_wrap_overshoot_tilde *)(w[1]);</div><div>    t_sample *in  = (t_sample *)(w[2]);</div><div>    t_sample *out = (t_sample *)(w[3]);</div><div>    t_int n       = (t_int)(w[4]);</div><div>    ...</div><div>    return w+5;</div><div>}</div></div><div><br></div><div>and the dsp_add method should be called like this:</div><div><span>dsp_add</span><span>((</span><span>t_perfroutine</span><span>)</span><span>wrap_<wbr>overshoot_tilde_perform</span><span>, </span><span>4</span><span>, (</span><span>t_int</span><span>)x, (</span><span>t_int</span><span>)sp[</span><span>0</span><span>]-></span><span>s_vec</span><span>, (</span><span>t_int</span><span>)sp[</span><span>1</span><span>]-></span><span>s_vec</span><span>, (</span><span>t_int</span><span>)sp[</span><span>0</span><span>]-></span><span>s_n</span><span>);</span></div><div><br></div><div><div>About what you want to do, I would like to help but I'm not sure to understand. I understand that you want that your object performs at the end of the DSP chain (end of the audio block) on a signal that should be computed previously in the DSP chain but as we all know only the Matthew McConaughey from Interstellar has this power :).</div><div><br></div><div>Cheers,</div></div><div><br></div><div>Pierre</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-29 12:00 GMT+02:00 Ed Kelly via Pd-dev <span dir="ltr"><<a href="mailto:pd-dev@lists.iem.at" target="_blank">pd-dev@lists.iem.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div><span>Hey list,</span></div><div><span></span></div><div>I'm tearing my hair out trying to re-write the wrap~ object, so that it doesn't wrap instantly but waits until the end of the audio block to wrap~ the signal. I hope you understand.</div><div><br></div><div>This is so that control-rate messages sent to another object further down the signal-path have a chance to catch up, and eliminate clicks due to the end-of-block delay for control messages.</div><div><br></div><div dir="ltr">The idea is that wrap_overshoot~ will not wrap until the end of the block. This is a really tech-y problem, but I've tried variables and clocks. Everything seems to segfault on me.</div><div dir="ltr"><br></div><div dir="ltr">?????</div><div dir="ltr">Lots of love,</div><div dir="ltr">Ed</div><div dir="ltr"><br></div><div dir="ltr">PS if this works you'll all be able to use it during and after pdcon16~<br></div></div></div><br>______________________________<wbr>_________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a><br>
<a href="https://lists.puredata.info/listinfo/pd-dev" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-dev</a><br>
<br></blockquote></div><br></div>