-
StrangerDayze
yeah it was typo in my post... strangely what i ended up doing was just rather than using a full name for the ui element (position1, position2) I just gave it a number name and it worked swimmingly... dunno what happens beyond the javascript on the webview and between android and libpd and so on but more than one way to skin a cat... also I cannot suggest enough this guy's amazing tutorials on getting stuff started. presently my entire project is using his tutorials
https://www.youtube.com/channel/UC-RatzHn1ukuuINLqnbBYegand http://www.nexusosc.com/ to do a quick app.
Seriously amazing communities around pd and so glad ya'll are here to help out!
-
StrangerDayze
I'm working on an app for android using lib pd, nexus osc (via webview) and as far as most things are considered it's working just fine. I was hoping to save myself some time and re-factoring of my old pd patch and use that.
The problem being this:
Nexus osc via a javascript function is sending data from UI elements in the following format (as confirmed by a printout, logging of both pd as well as android studio) "Position1 click 0.32 0.44"
in my main patch I have [route position1] and then a print object for testing. Technically I should see "click 0.32 0.44" but I'm not seeing anything on the first outlet. Interestingly if I send a message of the same sort to say an object that expects just a float the error messages are different too. via internal message in the patch [Position1 click 0.32 0.44" I get an expected : inlet expected 'float' but got 'Position1"
If i use libpd to send the message to the *~ object it says inlet expected float but goat 'Position1 click 0.32 0.44'
i'm baffled but assume i'm missing something VERY obvious. Any help would be greatly appreciated.
-
StrangerDayze
my understanding was you needed an apache server if you were hosting it locally (say like using a microsoft surface or some other sort of machine... so for me i'm just running xampp and put all my interfaces in the live webpages folder (htcdocs or some such folder) similarly for my ubuntu machine (but different directory structure obviously) then i just used a simple html editor and made a web page that'd have all my elements... I could have gone too far and reinvented the wheel given whale-av's statement on not needing a server because I wasn't getting OSC to-from browser->pd without it and just assumed a localhost was needed..
http://imgur.com/kUBcsi6 my interface is 4 faders a slew of xy controllers 2 button per channel and some toggles in there for good measure the back is this messy patch https://drive.google.com/file/d/0B41sSIxSufHwM1hRYXNRYVFxb2xpZE9tNDN1NnRXYmNFQlJN/view?usp=sharing -
StrangerDayze
My current live performance setup is using Nexus UI as the entire front end. I run it on a nice little tablet pc so i just put a script to fire off a kiosk'd browser with my control surface (lots of faders and xy pads) and my pd patch underneath and let it get to work. it works swimmingly for doing touch control on a local machine.