-
JonComo
I'm trying to make an "overdub" like feature running on a patch loaded by libpd on iOS. I need to simply add the values of one array to the values of another and store them in a third.
I've been struggling to get tab_add to work, but because I can't dynamically link its pd_darwin library I don't see that happening.
Does anyone know of an alternative that I could compile myself?
Maybe there is an alternative way? There doesn't seem to be a way to add two arrays together in vanilla pd.
In the meantime I'm going to work reading the arrays into c arrays and trying to do the addition there, then feed the result back.
Thanks for reading! I appreciate any help or tips in the right direction.
- Jon
-
JonComo
Maelstorm you are just the man! I remember you on here from like a year or years ago, always so helpful.. Thanks.
You're method worked, however it would hang with 960000 values in the array.
So what I did was just use utility methods in libpd, like copyarraynamed and copyarrayto, and did the processing on a background thread in Objective C. I get a little more control where I don't have to straight up mix them 100% and I can do other weird things (like reverse etc)!
Thanks again,
Jon