<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1475137098290_112272">Thanks Pierre. Trying it now.</div><div id="yui_3_16_0_ym19_1_1475137098290_112232"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1475137098290_112244">This thing doesn't immediately crash or segfault, so I'm onto a winner eventually :)</div><div dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1475137098290_116703" dir="ltr">I understand my brain is slightly more dead than it was. But we can move forward now.</div><div id="yui_3_16_0_ym19_1_1475137098290_116702" dir="ltr">Cheers,</div><div id="yui_3_16_0_ym19_1_1475137098290_116701" dir="ltr">Ed<br></div><div id="yui_3_16_0_ym19_1_1475137098290_110066"><span></span></div><div id="yui_3_16_0_ym19_1_1475137098290_110113"> </div><div id="yui_3_16_0_ym19_1_1475137098290_110065" class="signature"><b>Lone Shark </b>releases: <div id="yui_3_16_0_ym19_1_1475137098290_110064"><b>Light Vessel Automatic</b> available now on 12" vinyl.</div><div><span style="font-weight:bold;">Build Your Wings on the Way Down</span>, the new digital album available @ http://scifirecords.co.uk/releases <br><b>Earthlings </b>compilation is out now @ http://www.pyramidtransmissions.com<br><br>Ninja Jamm - the revolutionary music remix app for iOS and Android: http://www.ninjajamm.com/<br><br>Gemnotes-0.2: Live music notation for Pure Data, and Metastudio 5 live composition and improvisation suite, available at http://sharktracks.co.uk/puredata</div></div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;"> <div dir="ltr"><font face="Arial" size="2"> On Thursday, 29 September 2016, 12:27, Pierre Guillot <guillotpierre6@gmail.com> wrote:<br></font></div> <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <br><br> <div class="y_msg_container"><div id="yiv0620691526"><div><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( 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 clear="none"></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_ 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 clear="none"></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 clear="none"></div><div>Cheers,</div></div><div><br clear="none"></div><div>Pierre</div></div><div class="yiv0620691526gmail_extra"><br clear="none"><div class="yiv0620691526gmail_quote">2016-09-29 12:00 GMT+02:00 Ed Kelly via Pd-dev <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:pd-dev@lists.iem.at" target="_blank" href="mailto:pd-dev@lists.iem.at">pd-dev@lists.iem.at</a>></span>:<br clear="none"><blockquote class="yiv0620691526gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv0620691526yqt3536697829" id="yiv0620691526yqt88732"><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 clear="none"></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 clear="none"></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 clear="none"></div><div dir="ltr">?????</div><div dir="ltr">Lots of love,</div><div dir="ltr">Ed</div><div dir="ltr"><br clear="none"></div><div dir="ltr">PS if this works you'll all be able to use it during and after pdcon16~<br clear="none"></div></div></div></div><br clear="none">______________________________ _________________<br clear="none">
Pd-dev mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:Pd-dev@lists.iem.at" target="_blank" href="mailto:Pd-dev@lists.iem.at">Pd-dev@lists.iem.at</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://lists.puredata.info/listinfo/pd-dev">https://lists.puredata.info/ listinfo/pd-dev</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div> </blockquote> </div> </div>  </div></div></body></html>