[PD] OpenFrameworks + ofxPd in android: can't modify patch

Dan Wilcox danomatika at gmail.com
Fri Nov 13 08:22:37 CET 2015


You probably need to delete the app itself on the device, then install the new build. This sometimes happens with iOS where the binary is updated but not the data files.
--------
Dan Wilcox
@danomatika <https://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>
> On Nov 13, 2015, at 12:21 AM, Jose Luis Diez Antich <jl.diez.antich at gmail.com> wrote:
> 
> Hi Dan, 
> 
> Thank you for your answer.
> 
> What do you mean by “modify it”? Modify the patch? The ofApp? You mean you send messages to the patch or?
> 
> I mean modify the pd patch, sorry if I was not clear. At the moment, in the patch noisepanning.pd, there is an [osc~] connected to the second inlet of [headShadow]. 
> Then, I modify the patch so the input to this second inlet is a constant and I build the app again (running: make AndroidDebug and ./gradlew assembleDebug). When I install the new version of the app in my phone, the behaviour of the app is exactly the same as before, as when there was an [osc~] object.
> 
> I hope my problem is more clear now :)
> 
> Does the sound work in the example if you build and run it on Android? I don’t have an Android device, so I’ve never tested ofxPd on Android. I’ve been told it does work, however.
> 
> I have not tested an example, but the application I built runs on android.
> 
> 
> I am not sending anything from ofApp.cpp at the moment, but that is the next step, once I sort out how to modify pd patches.
> 
> 
> Thank you for your time,
> jl
> 
>  
> 
> 
> On Fri, Nov 13, 2015 at 1:49 AM, Dan Wilcox <danomatika at gmail.com <mailto:danomatika at gmail.com>> wrote:
>> At the moment, I am loading a pd file called "noisepanning.pd", I load it in the ofApp.cpp <https://github.com/%E2%80%A6/exampleTween%E2%80%A6/blob/master/src/ofApp.cpp> source code file. The problem arises when I try to modify it, because the app behaviour does not change, it is like I have not done anything. Moreover, when I try to load another pd patch, the android app does not sound at all.
> 
> What do you mean by “modify it”? Modify the patch? The ofApp? You mean you send messages to the patch or?
> 
> Judging from your code in ofApp.cpp, you’re not sending any messages to libpd at all. There is the playTone() member function but it’s not being called anywhere.
> 
>> I am not building again with Xcode when I perform these changes, since I am only interested in the android application. I only use the commands:
>> make AndroidDebug
>> ./gradlew assembleDebug
> 
> That’s good, since you can’t build for Android in Xcode anyway. :)
> 
>> Is there something more I should do when I change the pd patch?
> 
> 
> Does the sound work in the example if you build and run it on Android? I don’t have an Android device, so I’ve never tested ofxPd on Android. I’ve been told it does work, however.
> 
> --------
> Dan Wilcox
> @danomatika <https://twitter.com/danomatika>
> danomatika.com <http://danomatika.com/>
> robotcowboy.com <http://robotcowboy.com/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20151113/23fc1ef4/attachment.html>


More information about the Pd-list mailing list