IPhone App for Pd
here some suggestion on using the rjdj stuff
first you have to do the scene in the rjdj way: a folder named xxxname.rj
this folder contains: the pd patch called _main.pd, the rj folder (that contains the rj externals library), the scene image (320x320 px - called image.jpg - the one you see on the idevice, ),the same image but 55x55 called thumb.jpg, the info.plist file and the license.txt file.
depending on your scene the main folder can contain other stuff like externals or images you want to appear/disappeare when you touch the screen...
to download a scene into the idevice you have to use the rjserver... (on the pc)
you start the rjserver and tell it where your rj scene are on your computer, than you'll have a webpage listing all the rjscenes in that directory.
the page url will be something like http://192.168.1.106:8314
now you connect your ithing to your wifi (it must be the same your pc is using) open safari and go to the same page 192.168.1.......you touch the right link and rjdj opens and downloads and installs the scene onto the device....
not so sure if i've been clear enough, hope it helps
attached freebeats, a tested and working scene for rjdj -
sorry the zip file doesn't attach...maybe a chrome issue
Adding a simple video and sound file to a patch
Im a very basic basic user of pure data.
I know how to add music and video using
but when I close and open the file I have to go open panel and search for the video/music location all over again.
Was told to add a message box and put in the file location,
and it will need a bang.
but what do I attach it to??
Do I go
bang attached to
message box w/location attached to
or do i get rid of openpanel??
Foreground/background gestion in a patch with \[knob\] and \[image\]
I'm trying to make a nice gui using knobs surimposed over an image loaded by [image]. First I noticed (long time ago) that a knob created before the [image] will be in a layer under it and becomes invisible if placed where the image stands.
My workaround is creating knobs after the image. But if I want a 'two-state' image, thus refreshing the latter the knobs disappear forever.
Is there a way to handle background/foreground plane numbers or something to set my knobs (and other elements) 'always on top' ?
i'm trying to implement a system to track robots by a webcam. My problem is, it is difficult to track more than one robot with the PIX basic objects.
My system comport three robots identified by plates of different vivid colors, red, green and blue, and a platform with amoeba form that probably will be white or black in the final.
I've already tried to implement the track with pix_movement and it worked very well with just one robot. To work with two robots i thought it would be better to separate the RGBA matrix, to focus in each color, and have a functional track of each robot separately. BUUUT, it did not work very well, because the separated matrix did not present a good contrast of the predominant color, as a nice and big red mark over the red robot, for example, Instead of it, i had a very messy image caused by the interference of the background colors.
to filter and track the image i used:
pix_separator - to use 3 different images
pix_threshold - to keep just the wanted color, if it is high enough
pix_gain - to intensify the required color
pix_movement - to track the movement of the robot
pix_blob - to track the center of mass
One solution i thought its to use a filter that can recognize the image in another format, not RGBA, a format that differ colors, saturation and highness in different values and scales. Does it exists?
Thanks very much for reading it, i would be very glad if you could help me! =)
Positioning with video camera
i'm working on a robot positioning system, based on video image. And i'm having some problems with the [pix_*] objects.
To get the approximated position of my robot, i'm trying to calculate the gravity center of the image, weighting the color of the robot (each robot has a specific color: red, blue, green and yellow), but when i change the mode of [pix_blob], or determine weights to the RGB colors the result is aways the same and the GC remains in the center of the image.
I'm using an USB ordinary webcamera, in a well illuminated room.
Is there some better solution to get the position of a single colored object in a room? Does someone know hoe to properly handle the pix_blob object?
Pix\_image problem on Linux
This problem is discussed before on Pd list but still no real solution. When I create [pix_image] in a pd on Debian Linux, the object causes heavy CPU load even before it is connected to anything, some 4% per object instance. On Pd list it was suggested by several people to send message [thread 0( to the object. This will stop the crazy CPU load indeed, but now the object can no longer load images.. Sending [thread 1( reintroduces CPU load, but does not reenable image loading.
edit: the loaded images are lost (it is possible to load new images with the 'open' message, however not with initialisation argument).
This problem does not exist on Windows with the same hardware, and also not on my Macbook. On Debian, I first used the binary Gem package, but later compiled from source to include font support. Both these versions have the same problem. Can anyone confirm this issue, or report about a Gem for Linux where this problem does not occur? Or could it be a driver-related issue?
Thanks for any help or comment.
.png transparency and gem
Is there a way to see through the transparent background of .png images?
I set up four separate gem-heads, each importing .png images to add as textures to squares with the same dimensions, stacked on top of each other. I was hoping to be able to see through all 4 images to the gemwin background, but I only see the opaque parts of the top layer and a white background.
Metronome which bangs every bar, main subdivision and others.
I was toying around with an idea which resulted in this abstraction. It can be surely improved.
I wanted to have a bang at each bar to trigger events along with the base subdivision tempo. Then I thought that it could be useful to bang every further subdivisions of the tempo beat.
Feel free to use, modify, etc. if you find it useful/interesting.
Here is the patch:
To the administrator:
Why is it that I cannot attach a zipfile? I get this error:
Error: Unable to move file from: /tmp/phpofG09m to attach/1146769eddbdf34c3a1d8f2f0f16a58b/7d9c89cfbf21fcfabbfe64a94130ee04.attach.
Getting images to load with a patch/load bang/specifying a path
to load images i use messages such as [open pic1.jpg( [open pic2.jpg(
into [pix_image] or [open images/pic1.jpg( to change images on the fly
or you can use [pix_image images/pic1.jpg] to start with that picture.
Optimization tips? (gridflow / \#labelling)
Spent the better part of today reverse engineering gridflow's "multiblob" example patch -- time well spent, actually, as I now have a much better idea what it's actually doing than I would if I had just cribbed the example.
The only trouble is, it's s-s-l-l-l-l-o-o-o-o-o-o-w-w-w-w-w-w-w-w-w, chewing anywhere from 30-60% CPU according to Ubuntu system monitor. So I'm wondering how to pick up the pace. My patch is attached.
First obvious thing is, reduce the image size by another factor of two. After [#downscale_by 4 smoothly], the image is 320x256. I may not need that much resolution, but I'd prefer to keep that as a last resort.
Second thing -- I'm not sure how much efficiency I'm losing by reading the webcam using gem and then converting to gridflow. I ended up doing it that way because I simply could not get [#camera] to grab images at all. The #camera panel does identify the laptop's built-in webcam (BisonCam,_NB_Pro) but 'bang'ing a [#camera 0] only produces this error.
error: [#io.videodev in /dev/video0 0] inlet 0 method bang: alloc_image: ioctl VIDIOCGMBUF: Invalid argument
(Ubuntu Lucid (2.6.33-29-realtime), 64-bit, pd 0.42.5-extended, installed gridflow from the puredyne PPA https://launchpad.net/~puredyne-team/+archive/ppa/+files/gridflow_9.12-1%7Eppa1%7Elucid1_amd64.deb)
Beyond that, I don't know enough about what gridflow is doing under the hood to use it more efficiently. Any pointers?