Thanks Dan.
My problem is with LibPdFilterRead.cs as it doesn't compile because of this error:
*Code:* // Unity audio callback public void OnAudioFilterRead (float[] data, int channels) { if(dataPtr == IntPtr.Zero) { dataHandle = GCHandle.Alloc(data,GCHandleType.Pinned); dataPtr = dataHandle.AddrOfPinnedObject(); }
if (islibpdready) {
*LibPD.Process(numberOfTicks, dataPtr, dataPtr); //THIS
is the line that throws an error* } }
*Error:* Assets/LibPdFilterRead.cs(52,31): error CS1502: The best overloaded method match for `LibPDBinding.LibPD.Process(int, double*, double*)' has some invalid arguments
On Sun, Oct 23, 2016 at 1:13 PM, Dan Wilcox danomatika@gmail.com wrote:
https://github.com/libpd/libpd#c
Dan Wilcox @danomatika https://twitter.com/danomatika danomatika.com robotcowboy.com
On Oct 23, 2016, at 8:21 AM, Ali Momeni batchku@gmail.com wrote:
Thanks Dan.
I'm having trouble getting the latest libpd4unity compiling:
https://github.com/patricksebastien/libpd4unity/issues/18
Also, if the libpd C# binaries from NuGet are a way to get libpd/unity integrated, would you please post a link?
On Sun, Oct 23, 2016 at 1:35 AM, Dan Wilcox danomatika@gmail.com wrote:
Patrick updated the libpd version used by libpd4unity less than a month ago. The other wrapper files *seem* old since the libpd API is largely stable, so no need for constant commits.
Also, libpd is much easier to build for C# / MONO in the latest version so I imagine that should help in regards to unity, although I have not tried it personally. There are also prebuilt libpd C# binaries for multiple platforms on NuGet.
Dan Wilcox @danomatika https://twitter.com/danomatika danomatika.com robotcowboy.com
On Oct 22, 2016, at 3:55 PM, pd-list-request@lists.iem.at wrote:
*From: *Ali Momeni batchku@gmail.com *Subject: **[PD] libpd for Unity still alive?* *Date: *October 22, 2016 at 2:47:23 PM MDT *To: *"pd-list@lists.iem.at" pd-list@lists.iem.at
Hello all,
I'd like to play with libpd within Unity. I've come across several project that attempt this:
https://github.com/patricksebastien/libpd4unity https://github.com/Magicolo/uPD https://github.com/hagish/kalimba
but it seems like they are all old and not maintained; it also seems that they haven't been tested with Unity 5. Does anyone have any recent experience with pd and unity?
Regards,
ali