OSC

iPad2QC->OSC Multi-Touch Accelerometer (Composition by dust)

Author: dust
License: MIT
Date: 2010.04.30
Compatibility: 10.6
Categories:
Required plugins:
(none)

here is a patch that sends multi-touch and accelerometer iPad events to quartz composer.

version 2....

port [6666]

i simplified the touch structure. rather than having all touches in one structure. i choose to split them apart.

they are...

/touch/1/ "0" x1 location in pixels "1" y1 location in pixels "2" x1 previos location in pixels "3" y1 previos location in pixels

/touch/2/ "0" x2 location in pixels "1" y2 location in pixels "2" x2 previos location in pixels "3" y2 previos location in pixels

/touch/3/ "0" x3 location in pixels "1" y3 location in pixels "2" x3 previos location in pixels "3" y3 previos location in pixels

/touch/4/ "0" x4 location in pixels "1" y4 location in pixels "2" x4 previos location in pixels "3" y4 previos location in pixels

/touch/5/ "0" x5 location in pixels "1" y5 location in pixels "2" x5 previos location in pixels "3" y5 previos location in pixels

4 tap to bring up UI text input for ip... this can be increased to insure no false hits. enter sets ip.

run mtoscpad.qtz to make sure everything is working.

if you want to visualize the particles on the ipad un-comment all emitters in side the touches moved event.

they look like this. there is a bunch.. //[self addChild: emitter z:0];

ipad osc qc controller

dust's picture

here is an app... i think people might want to use with their ipad. at least i have been making some use with it. its just a simple multi-touch accelerometer osc controller. there doesn't seem to be one available for download yet. so i made one... i'm thinking about going open source with it. i would love to publish it just like it is so i can use it and or download it.

it just sucks that you pay for a developer account you build a bunch of apps for personal use and once your provisioning profile dies a year later you can't run any of the apps that you made and payed to be able to build. so now knowing this i want to deploy my iPad apps so i can use them myself. the problem is that most of my apps are only useful to my projects. anybody have any thoughts on this subject.

http://pelican.asap.um.maine.edu/~oconnordw/vid/padQC.mov

here is an app running on the table.

http://pelican.asap.um.maine.edu/~oconnordw/vid/cardFlip.mov

i have some other ipad apps that work with qc but can't really show at the moment... but if you will be at the mapping festival in geneva next week you can see an early beta of a native ipad vj app i made the other day.

Card Trick.

dust's picture

here is a sneak peak at a developing composition.

so this is an example of interfacing quartz composer with the iphone via udp tcp socket xml strings. so this a screen shot locally but this works remote although its bet to play with a multi-touch table and iphone ipad. right now its just a standard card deck with no rules but there is both flash quartz composer, iphone, and ipad implementations so it is inherently multi-touch, & multi-player with various devices. right here i'm playing by myself.

this is in 3d but its only a top view as its intended for there to be a group multi-touch table and private mobile viewing for face down cards.

any idea on how to do a good shuffle in qc, random ? not random ?

i got some cool fan gestures that will eventually get into the working model.

OSC receiver not working

djfil's picture

quartz composer OSC receiver has stopped working. It worked before. With OSCulator everything is fine. I get no error messages from QC. In console i get:

3/16/10 4:16:38 PM Finder[231] *** Patch class "QCOSCReceiver" is not allowed in safe mode 3/16/10 4:16:38 PM Finder[231] *** : Failed instantiating patch with name "QCOSCReceiver" 3/16/10 4:16:38 PM Finder[231] *** Message from : Cannot create node of class "QCOSCReceiver" and identifier "(null)" 3/16/10 4:16:38 PM Finder[231] *** Message from : Cannot create connection from ["outputSignal" @ "OSCReceiver_2"] to ["tap" @ "Patch_1"] 3/16/10 4:16:38 PM Finder[231] *** State restoration failed on

But this is from finder, something about safe mode. I've tryed to set this options to allow OSC receiver. But without success. Also tryed qcOSC from somewhere arround here. Again unsucceess. Changed the communication port to several different. No success. Also tryed to send from within the mac from pure data and no succeess either. I have spent the last day trying to find anyone with this kind of error but no luck. Can't understand why or what.

On debug mode QC is able to receive something but i still get no reaction on screen. it prints this:

3/16/10 5:18:45 AM Quartz Composer[1756] *** Message from : Packet received on port 11000: { }

I've not done much, kineme has something to detect bad installation of packages but apparently they are all fine.I just installed camcamx and manycam. Whome weren't working but suddenly they started working. (fixed something to broke another)

From my understanding of QC i believe that the problem is on the socket read from QC. But i own a mac less than a year, and only started working with QC last month.

Can anyone help? Please! The objective was to syncronize Traktor(running on a windows machine) to Coge(running on this mac).

BTW platform: OSX 10.5.8 QC Version 3.0 (63) Framework Version 2.1 (106.13)

OSC value enabled by default

mattgolsen's picture

I have a network controlled composition that I'm working on that I'm having some trouble with. I'm using OSC to enable and disable patches in the slave composition, but if it crashes and reopens any of the values that were previously enabled are now disabled due to the master composition not sending the "True" boolean value. What would be the best way to have a boolean input on a macro that is already connected to OSC receiver always be true when the composition is opened?