<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’m trying to test libpd out by merely having it read a patch with [osc~ 440] -> [dac~]<div class=""><br class=""></div><div class="">I’m currently doing:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(79, 129, 135);" class=""><span class="Apple-tab-span" style="white-space:pre">   </span>pdengine<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> = </span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">new</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span>pd<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">::</span>PdBase<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">();</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(79, 129, 135);" class="">  </div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(79, 129, 135);" class=""><span class="Apple-tab-span" style="white-space:pre">  </span>pdengine<span style="color: rgb(0, 0, 0);" class="">-></span><span style="color: rgb(49, 89, 93);" class="">init</span><span style="color: rgb(0, 0, 0);" class=""> (</span><span style="color: rgb(0, 132, 0);" class="">/*NInChannels()*/</span><span style="color: rgb(0, 0, 0);" class=""> </span><span style="color: rgb(39, 42, 216);" class="">0</span><span style="color: rgb(0, 0, 0);" class="">, </span><span style="color: rgb(39, 42, 216);" class="">2</span><span style="color: rgb(0, 0, 0);" class="">, </span><span style="color: rgb(49, 89, 93);" class="">GetSampleRate</span><span style="color: rgb(0, 0, 0);" class="">());</span></div><p style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></p><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(209, 47, 27);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class=""><span class="Apple-tab-span" style="white-space:pre">  </span>patch</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> = </span><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">pdengine</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">-></span><span style="font-variant-ligatures: no-common-ligatures; color: #31595d" class="">openPatch</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span>"testpatches/sine.pd"<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">, </span>"."<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">);</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(0, 132, 0);" class=""><span class="Apple-tab-span" style="white-space:pre">        </span>// audio processing on</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(49, 89, 93);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class=""><span class="Apple-tab-span" style="white-space:pre">   </span>pdengine</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">-></span>computeAudio<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">true</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">);</span></div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(49, 89, 93);" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">and so on.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">The line:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px;" class=""><div style="font-family: Menlo; font-size: 11px; margin: 0px; color: rgb(209, 47, 27);" class=""><span style="color: rgb(79, 129, 135);" class=""><span class="Apple-tab-span" style="white-space:pre">    </span>patch</span><span style="color: rgb(0, 0, 0);" class=""> = </span><span style="color: rgb(79, 129, 135);" class="">pdengine</span><span style="color: rgb(0, 0, 0);" class="">-></span><span style="color: rgb(49, 89, 93);" class="">openPatch</span><span style="color: rgb(0, 0, 0);" class="">(</span>"testpatches/sine.pd"<span style="color: rgb(0, 0, 0);" class="">, </span>"."<span style="color: rgb(0, 0, 0);" class="">);</span></div><div style="font-family: Menlo; font-size: 11px;" class=""><span style="color: rgb(0, 0, 0);" class=""><br class=""></span></div><div style="font-family: Menlo; font-size: 11px;" class=""><span style="color: rgb(0, 0, 0);" class="">gives</span></div><div style="font-family: Menlo; font-size: 11px;" class=""><span style="color: rgb(0, 0, 0);" class=""><br class=""></span></div><div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">Thread 1: EXC_BAD_ACCESS (code=1, address=0x28) on pdengine->openPatch()</span></font></div><div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class=""></span></font></div><div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">the testpatches folder exists at “." and contains sine.pd.</span></font></div><div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class=""></span></font></div><div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">What’s wrong?</span></font></div></div></body></html>