<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi Joe,</span></div><div><br><span></span></div><div><span>It's an app for remixing music. Can't say more than that, but if everything gets finished on time it will be out next month. Wasn't my idea to make this, but I've done things like it before. The record label is quite well known...</span></div><div><span>Ed</span></div><div>&nbsp;</div><div>Gemnotes-0.1alpha: Live music notation for Pure Data<br>http://sharktracks.co.uk/<br></div>  <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight: bold;">From:</span></b> Joe White &lt;white.joe4@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Ed Kelly
 &lt;morph_2016@yahoo.co.uk&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> pd-list &lt;pd-list@iem.at&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, 27 April 2012, 9:45<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [PD] [Pd] Compile external with C++ compiler?<br> </font> </div> <br><div id="yiv1704321516"><div class="yiv1704321516gmail_extra">Hi Ed,</div><div class="yiv1704321516gmail_extra"><br></div><div class="yiv1704321516gmail_extra">Thanks for the advice, although I don't think this piece of work warrants changing our audio engine :)</div><div class="yiv1704321516gmail_extra">


<br></div><div class="yiv1704321516gmail_extra">ofxPd looks cool though, what's sort of app are you making? (If you can say).&nbsp;</div><div class="yiv1704321516gmail_extra"><br></div><div class="yiv1704321516gmail_extra">Cheers,</div><div class="yiv1704321516gmail_extra">


Joe<br><br><div class="yiv1704321516gmail_quote">On 27 April 2012 02:05, Ed Kelly <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:morph_2016@yahoo.co.uk" target="_blank" href="mailto:morph_2016@yahoo.co.uk">morph_2016@yahoo.co.uk</a>&gt;</span> wrote:<br><blockquote class="yiv1704321516gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div><div style="font-size: 12pt; font-family: times new roman,new york,times,serif;"><div><span>Hi Joe,</span></div><div><br><span></span></div><div><span>Have you thought of using ofxPd?</span></div><div><br><span></span></div>


<div><span>I'm involved in the creation of an app for the iPhone right now, and we're using ofxPd from Dan Wilcox:</span></div><div><span><a rel="nofollow" target="_blank" href="https://github.com/danomatika/ofxPd">https://github.com/danomatika/ofxPd</a></span></div>


<div><span>Since Openframeworks is a bunch of C++ wrappers for various libraries, ofxPd adds Pd to the libraries that you can work with in C++.</span></div><div><span>Then you can call the setup function within the xcode build, and your object will work in libpd (i.e. ofxPd) in the app environment.</span></div>


<div><span>Bear in mind that Apple do not like GnuGPL licensed stuff, so I've created BSD licensed versions of some of my own Pd externals for this project.<br></span></div><div><br></div><div>And the
 app works. We're in the final stages now, so I'll post to the list when it's complete!</div><div>Best,</div><div>Ed<br><span></span></div><div>&nbsp;</div><div>Gemnotes-0.1alpha: Live music notation for Pure Data<br>


<a rel="nofollow" target="_blank" href="http://sharktracks.co.uk/">http://sharktracks.co.uk/</a><br></div>  <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">


 <div dir="ltr"> <font face="Arial"> <hr size="1">  <b><span style="font-weight: bold;">From:</span></b> Joe White &lt;<a rel="nofollow" ymailto="mailto:white.joe4@gmail.com" target="_blank" href="mailto:white.joe4@gmail.com">white.joe4@gmail.com</a>&gt;<br> <b><span style="font-weight: bold;">To:</span></b> pd-list &lt;<a rel="nofollow" ymailto="mailto:pd-list@iem.at" target="_blank" href="mailto:pd-list@iem.at">pd-list@iem.at</a>&gt; <br>


 <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 26 April 2012, 16:51<br> <b><span style="font-weight: bold;">Subject:</span></b> [PD] [Pd] Compile external with C++ compiler?<br> </font> </div><div><div>
 <br><div>Hi all,<div><br></div><div>Thought I might as well ask this here
 because you guys know everything :)</div><div><br></div><div>I'm writing an external to be built into an iOS app that's running Pd. The catch is I need to interface with a C++ library within the external.&nbsp;</div>




<div><br></div><div>The external builds and runs fine if I'm using the C compiler (in Xcode) but I can't access the C++ library functions. If I switch it to compile in C++ (by changing the objective-c file from .m to .mm) then I can use the C++ library functions but it complains that it can't find 'class_addmethod'</div>




<div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <i>'No matching function for call to 'class_addmethod'</i></div><div><br></div><div>I've tried declaring the setup function as C code like Katja <a rel="nofollow" target="_blank" href="http://www.katjaas.nl/pitchshift/soundtouch%7E.html">explains on her site</a>:</div>




<div>







<div><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; extern</span> <span>"C"</span> <span>void</span> external_tilde_setup(<span>void</span>) { }</div><div><div><div>But that still didn't seem to work. I was also going through the list and found <a rel="nofollow" target="_blank" href="http://lists.puredata.info/pipermail/pd-list/2002-02/004485.html">this thread</a>&nbsp;but I'm not sure if it's the right approach. Plus I'm more of an audio guy than programmer :)</div>




<div><br></div><div>Any ideas would be much appreciated.</div><div><br></div><div>Thanks,</div><div>Joe</div><div><br></div>-- <br>Follow me on Twitter @diplojocus<br>
</div></div></div>
</div><br></div></div>_______________________________________________<br><a rel="nofollow" ymailto="mailto:Pd-list@iem.at" target="_blank" href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a rel="nofollow" target="_blank" href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br>


<br><br> </div> </div>  </div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Follow me on Twitter @diplojocus<br>
</div>
</div><br><br> </div> </div>  </div></body></html>