<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_1517152575839_19057">Hi Devs,</div><div id="yui_3_16_0_ym19_1_1517152575839_18906"><br></div><div id="yui_3_16_0_ym19_1_1517152575839_18908">I'm attempting to port a library of MSP externals for LPC analysis and resynthesis.</div><div id="yui_3_16_0_ym19_1_1517152575839_18965" dir="ltr">I've come across these elements from the Max API:</div><div id="yui_3_16_0_ym19_1_1517152575839_18928" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1517152575839_18967" dir="ltr"><a id="yui_3_16_0_ym19_1_1517152575839_18957" href="https://cycling74.com/sdk/max-sdk-7.3.3/html/group__misc.html#ga70766a030fcd392d4574fa59b296a68e">t_ptr</a> <a id="yui_3_16_0_ym19_1_1517152575839_18958" href="https://cycling74.com/sdk/max-sdk-7.3.3/html/group__memory.html#ga1c178a079247f715c6e34c828d375324">sysmem_newptrclear</a> (long size)</div><div id="yui_3_16_0_ym19_1_1517152575839_18969" dir="ltr">and</div><div id="yui_3_16_0_ym19_1_1517152575839_19288" dir="ltr">void <a id="yui_3_16_0_ym19_1_1517152575839_19012" href="https://cycling74.com/sdk/max-sdk-7.3.3/html/group__memory.html#ga200c82639e547869db1f3887d17102d3">sysmem_freeptr</a> (void *ptr)</div><div id="yui_3_16_0_ym19_1_1517152575839_19060" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1517152575839_19262" dir="ltr">My head has hit a block, and I need to learn about how Pd deals with these aspects of memory / pointer allocation.</div><div id="yui_3_16_0_ym19_1_1517152575839_19062" dir="ltr">Do I need to just init a pointer in the code?<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1517152575839_18971"><span>enclosed is the original of one of the externals (mbc.blit~.c) and my first attempt at porting it (lpc_blit~.c)</span></div><div id="yui_3_16_0_ym19_1_1517152575839_19311" dir="ltr"><br><span></span></div><div dir="ltr"><span>Enlightnment awaits...I hope.</span></div><div dir="ltr"><span>Ed</span></div><div id="yui_3_16_0_ym19_1_1517152575839_18910"> </div><div id="yui_3_16_0_ym19_1_1517152575839_18912" class="signature">_-_-_-_-_-_-_-^-_-_-_-_-_-_-_<br><br>For <b>Lone Shark </b>releases, <b>Pure Data </b>software and published <b id="yui_3_16_0_ym19_1_1517152575839_18914">Research</b>, go to <a rel="nofollow" target="_blank" href="http://sharktracks.co.uk/">http://sharktracks.co.uk</a> </div></div></body></html>